diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-27 17:17:37 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-27 17:17:37 -0300 |
commit | 0c14c3dd36e1c2f529ffa248383a275cfb21f168 (patch) | |
tree | f844a262139ed9aadefa9707776794927a12b1de /mozilla-testing/icecat-i18n/Makefile | |
parent | b24bcd7ea54466fae5136027d6b5bd9fb3741012 (diff) | |
parent | cdb44f3dc8b59a656b0dc5568d731bdcb7c9ff60 (diff) | |
download | abslibre-0c14c3dd36e1c2f529ffa248383a275cfb21f168.tar.gz abslibre-0c14c3dd36e1c2f529ffa248383a275cfb21f168.tar.bz2 abslibre-0c14c3dd36e1c2f529ffa248383a275cfb21f168.zip |
Merge branch 'master' of ssh://gparabola/abslibre
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 |