From 8654516201466a2dd3f3f05a6c0095e69c01715c Mon Sep 17 00:00:00 2001 From: root Date: Sat, 31 Dec 2011 23:14:47 +0000 Subject: Sat Dec 31 23:14:47 UTC 2011 --- mozilla-testing/icecat-i18n/Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'mozilla-testing/icecat-i18n/Makefile') diff --git a/mozilla-testing/icecat-i18n/Makefile b/mozilla-testing/icecat-i18n/Makefile index 5dd818e62..237edb616 100644 --- a/mozilla-testing/icecat-i18n/Makefile +++ b/mozilla-testing/icecat-i18n/Makefile @@ -7,25 +7,30 @@ # - sed # - wget +# Variables: +_pkgver=9.0 pkgver=9.0.1 +pkgrel=2 + +# Guts: ############################################################## default: PHONY all all: PHONY PKGBUILD -.PRECIOUS: PKGBUILD index.html: Makefile rm -f $@ wget http://gnuzilla.gnu.org/download/langpacks/${pkgver}/ langpacks.txt: index.html Makefile egrep -o '[^>".]+\.xpi' $< | sort -u | sed 's/\.xpi//' > $@ -PKGBUILD: langpacks.txt Makefile +PKGBUILD: PKGBUILD.in langpacks.txt Makefile sed \ - -e 's/^pkgver=.*/pkgver=$(pkgver)/' \ - -e "s/_langpacks=.*/_langpacks=(`xargs echo < $<`)/" \ + -e 's/@_PKGVER@/$(_pkgver)/' \ + -e 's/@PKGVER@/$(pkgver)/' \ + -e 's/@PKGREL@/$(pkgrel)/' \ + -e "s/@LANGPACKS@/(`xargs echo < langpacks.txt`)/" \ -e '/md5sums/,$$d' \ - $@ > $@.$$$$ && \ - makepkg -g >> $@.$$$$ && \ - mv $@.$$$$ $@ + PKGBUILD.in > $@ + makepkg -dg >> $@ clean: PHONY rm -f index.html langpacks.txt *.xpi -- cgit v1.2.3-54-g00ecf