diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-12-27 02:20:15 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-12-27 02:20:15 -0500 |
commit | 8cc645d54287761cc9b2e57a537c307967d6ed40 (patch) | |
tree | a9cf72c3cd5a523c39f2adcfae358bf139d94804 /mozilla-testing/icecat-i18n/Makefile | |
parent | e184a60312988975147531b3dd0a59573056a380 (diff) | |
download | abslibre-8cc645d54287761cc9b2e57a537c307967d6ed40.tar.gz abslibre-8cc645d54287761cc9b2e57a537c307967d6ed40.tar.bz2 abslibre-8cc645d54287761cc9b2e57a537c307967d6ed40.zip |
create [mozilla-testing]: icecat9, iceweasel9, i18n for each, and mozilla-searchplugins.
Diffstat (limited to 'mozilla-testing/icecat-i18n/Makefile')
-rw-r--r-- | mozilla-testing/icecat-i18n/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mozilla-testing/icecat-i18n/Makefile b/mozilla-testing/icecat-i18n/Makefile new file mode 100644 index 000000000..5dd818e62 --- /dev/null +++ b/mozilla-testing/icecat-i18n/Makefile @@ -0,0 +1,33 @@ +#!/usr/bin/make -f +# Use this script to update the PKGBUILD's list of langpacks. +# This script depends on: +# - coreutils +# - grep +# - pacman +# - sed +# - wget + +pkgver=9.0.1 + +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 + sed \ + -e 's/^pkgver=.*/pkgver=$(pkgver)/' \ + -e "s/_langpacks=.*/_langpacks=(`xargs echo < $<`)/" \ + -e '/md5sums/,$$d' \ + $@ > $@.$$$$ && \ + makepkg -g >> $@.$$$$ && \ + mv $@.$$$$ $@ + +clean: PHONY + rm -f index.html langpacks.txt *.xpi + +.PHONY: PHONY FORCE |