summaryrefslogtreecommitdiff
path: root/~emulatorman/icecat-l10n/Makefile
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-01-17 18:41:43 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-01-17 18:41:43 -0200
commitaeb81933f22181e922a0fa91feb27da923d703bc (patch)
treed369c7c92cc981aa47070d52dca712923f3356bc /~emulatorman/icecat-l10n/Makefile
parentd2c8976a6f2f4da940e0fd4cee7d6ca403221661 (diff)
backing mozilla and ice packs files
Diffstat (limited to '~emulatorman/icecat-l10n/Makefile')
-rw-r--r--~emulatorman/icecat-l10n/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/~emulatorman/icecat-l10n/Makefile b/~emulatorman/icecat-l10n/Makefile
new file mode 100644
index 000000000..d1aaf7bff
--- /dev/null
+++ b/~emulatorman/icecat-l10n/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