summaryrefslogtreecommitdiff
path: root/mozilla-testing/icecat-i18n/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-29 15:39:56 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-29 15:39:56 -0500
commit8b9dc14ffc0413ccb5887f7f9502c095ca7e7a57 (patch)
tree3e0edf69cf90605a39c74a723075b853afcb6746 /mozilla-testing/icecat-i18n/Makefile
parent0c14c3dd36e1c2f529ffa248383a275cfb21f168 (diff)
change the ice{cat,weasel}-i18n update systems to use autoconf-style PKGBUILD.in files (more robust)
Diffstat (limited to 'mozilla-testing/icecat-i18n/Makefile')
-rw-r--r--mozilla-testing/icecat-i18n/Makefile19
1 files changed, 12 insertions, 7 deletions
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