From 8cc645d54287761cc9b2e57a537c307967d6ed40 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 27 Dec 2011 02:20:15 -0500 Subject: create [mozilla-testing]: icecat9, iceweasel9, i18n for each, and mozilla-searchplugins. --- mozilla-testing/icecat-i18n/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 mozilla-testing/icecat-i18n/Makefile (limited to 'mozilla-testing/icecat-i18n/Makefile') 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 -- cgit v1.2.3