Author: jbeich
Date: Wed Apr 17 14:31:18 2013
New Revision: 1242
Log:
unify list-langs target
Modified:
trunk/mail/thunderbird-i18n/Makefile
trunk/www/firefox-esr-i18n/Makefile
trunk/www/firefox-i18n/Makefile
trunk/www/seamonkey-i18n/Makefile
Modified: trunk/mail/thunderbird-i18n/Makefile
==============================================================================
--- trunk/mail/thunderbird-i18n/Makefile Wed Apr 17 14:31:09 2013
(r1241)
+++ trunk/mail/thunderbird-i18n/Makefile Wed Apr 17 14:31:18 2013
(r1242)
@@ -75,8 +75,9 @@
${XARGS} -0L1 ${REINPLACE_CMD} -i '' '/<?xml/,$$!d'
list-langs:
- @fetch -o-
"http://releases.mozilla.org/pub/mozilla.org/${MASTER_SITE_SUBDIR}"|\
- perl -ne 'if(/.*href="([a-zA-Z-]+).xpi.*/){print "$$1 "}'
+ @fetch -qo-
"https://ftp.mozilla.org/pub/mozilla.org/${PORTNAME:S|-i18n||}/releases/${PORTVERSION}esr/linux-i686/xpi"|\
+ ${PERL} -ne 'if(/.*href="([a-zA-Z-]+).xpi.*/){print "$$1\n"}' |\
+ ${AWK} 'BEGIN{ORS=" "}{print $$1}END{printf "\nNumber of
languages: %d\n",NR}'
.include "${.CURDIR}/../../www/xpi-adblock/Makefile.xpi"
.include <bsd.port.post.mk>
Modified: trunk/www/firefox-esr-i18n/Makefile
==============================================================================
--- trunk/www/firefox-esr-i18n/Makefile Wed Apr 17 14:31:09 2013 (r1241)
+++ trunk/www/firefox-esr-i18n/Makefile Wed Apr 17 14:31:18 2013 (r1242)
@@ -85,10 +85,10 @@
${FIND} ${WRKSRC} -name install.rdf -print0 | \
${XARGS} -0L1 ${REINPLACE_CMD} -i '' -e '/<?xml/,$$!d'
-List-Langs:
- @fetch -o-
"http://releases.mozilla.org/pub/mozilla.org/${MASTER_SITE_SUBDIR}"|\
+list-langs:
+ @fetch -qo-
"https://ftp.mozilla.org/pub/mozilla.org/${PORTNAME:S|-i18n||}/releases/${PORTVERSION}esr/linux-i686/xpi"|\
${PERL} -ne 'if(/.*href="([a-zA-Z-]+).xpi.*/){print "$$1\n"}' |\
- ${AWK} 'BEGIN{ORS=" "}{print $1}END{printf "\nNumber of
languages: %d\n",NR}'
+ ${AWK} 'BEGIN{ORS=" "}{print $$1}END{printf "\nNumber of
languages: %d\n",NR}'
.include "${.CURDIR}/../xpi-adblock/Makefile.xpi"
Modified: trunk/www/firefox-i18n/Makefile
==============================================================================
--- trunk/www/firefox-i18n/Makefile Wed Apr 17 14:31:09 2013 (r1241)
+++ trunk/www/firefox-i18n/Makefile Wed Apr 17 14:31:18 2013 (r1242)
@@ -85,10 +85,10 @@
${FIND} ${WRKSRC} -name install.rdf -print0 | \
${XARGS} -0L1 ${REINPLACE_CMD} -i '' -e '/<?xml/,$$!d'
-List-Langs:
- @fetch -o-
"http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PORTVERSION}/linux-i686/xpi"|\
+list-langs:
+ @fetch -qo-
"https://ftp.mozilla.org/pub/mozilla.org/${PORTNAME:S|-i18n||}/releases/${PORTVERSION}/linux-i686/xpi"|\
${PERL} -ne 'if(/.*href="([a-zA-Z-]+).xpi.*/){print "$$1\n"}' |\
- ${AWK} 'BEGIN{ORS=" "}{print $1}END{printf "\nNumber of
languages: %d\n",NR}'
+ ${AWK} 'BEGIN{ORS=" "}{print $$1}END{printf "\nNumber of
languages: %d\n",NR}'
.include "${.CURDIR}/../xpi-adblock/Makefile.xpi"
Modified: trunk/www/seamonkey-i18n/Makefile
==============================================================================
--- trunk/www/seamonkey-i18n/Makefile Wed Apr 17 14:31:09 2013 (r1241)
+++ trunk/www/seamonkey-i18n/Makefile Wed Apr 17 14:31:18 2013 (r1242)
@@ -80,10 +80,10 @@
${FIND} ${WRKSRC} -name install.rdf -print0 | \
${XARGS} -0L1 ${REINPLACE_CMD} -i '' -e '/<?xml/,$$!d'
-List-Langs:
- @fetch -o-
"http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/${PORTVERSION}/langpack"|\
- ${PERL} -ne
'if(/.*href="seamonkey-${PORTVERSION}.([a-zA-Z-]+).langpack.xpi"/){print
"$$1\n"}' |\
- ${AWK} 'BEGIN{ORS=" "}{print $1}END{printf "\nNumber of
languages: %d\n",NR}'
+list-langs:
+ @fetch -qo-
"https://ftp.mozilla.org/pub/mozilla.org/${PORTNAME:S|-i18n||}/releases/${PORTVERSION}/langpack"|\
+ ${PERL} -ne
'if(/.*href="${DISTNAME:S|-i18n||}.([a-zA-Z-]+).langpack.xpi.*/){print
"$$1\n"}' |\
+ ${AWK} 'BEGIN{ORS=" "}{print $$1}END{printf "\nNumber of
languages: %d\n",NR}'
.include "${.CURDIR}/../xpi-adblock/Makefile.xpi"
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[email protected]"