diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-03-23 19:47:42 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-03-23 19:47:42 -0300 |
commit | c4cc142235d7d77327c2a53d9efb2750b1ec80bf (patch) | |
tree | 41446fa0833a3783d24b6bd12c64336f845e6032 /libre/icecat-i18n/Makefile | |
parent | 5ddafb1e55d18275d3f16e9faa3e9da788b54389 (diff) | |
parent | b1b9debcc7f6756d83dbac37806021de007cf083 (diff) | |
download | abslibre-c4cc142235d7d77327c2a53d9efb2750b1ec80bf.tar.gz abslibre-c4cc142235d7d77327c2a53d9efb2750b1ec80bf.tar.bz2 abslibre-c4cc142235d7d77327c2a53d9efb2750b1ec80bf.zip |
Merge branch 'master' of ssh://gparabola/abslibre
Conflicts:
libre/linux-libre/PKGBUILD
Diffstat (limited to 'libre/icecat-i18n/Makefile')
-rw-r--r-- | libre/icecat-i18n/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libre/icecat-i18n/Makefile b/libre/icecat-i18n/Makefile new file mode 100644 index 000000000..d1aaf7bff --- /dev/null +++ b/libre/icecat-i18n/Makefile @@ -0,0 +1,38 @@ +#!/usr/bin/make -f +# Use this script to update the PKGBUILD's list of langpacks. +# This script depends on: +# - coreutils +# - grep +# - pacman +# - sed +# - wget + +# Variables: +_pkgver=10.0 +pkgver=10.0 +pkgrel=1 + +# Guts: ############################################################## + +default: PHONY all +all: PHONY 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: PKGBUILD.in langpacks.txt Makefile + sed \ + -e 's/@_PKGVER@/$(_pkgver)/' \ + -e 's/@PKGVER@/$(pkgver)/' \ + -e 's/@PKGREL@/$(pkgrel)/' \ + -e "s/@LANGPACKS@/(`xargs echo < langpacks.txt`)/" \ + -e '/md5sums/,$$d' \ + PKGBUILD.in > $@ + makepkg -dg >> $@ + +clean: PHONY + rm -f index.html langpacks.txt *.xpi + +.PHONY: PHONY FORCE |