summaryrefslogtreecommitdiff
path: root/libre/icecat-i18n/Makefile
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-03-23 19:47:42 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-03-23 19:47:42 -0300
commitc4cc142235d7d77327c2a53d9efb2750b1ec80bf (patch)
tree41446fa0833a3783d24b6bd12c64336f845e6032 /libre/icecat-i18n/Makefile
parent5ddafb1e55d18275d3f16e9faa3e9da788b54389 (diff)
parentb1b9debcc7f6756d83dbac37806021de007cf083 (diff)
downloadabslibre-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/Makefile38
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