diff options
author | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-03-02 21:42:27 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-03-02 21:42:27 -0200 |
commit | 458e8bb98a9ad3661629d65e93caa046b179cd1a (patch) | |
tree | 7d87e766ecedb680b3be12960970c99bb44f8632 | |
parent | dc129a165adba07b197c9644e95984e25c413f13 (diff) | |
download | abslibre-458e8bb98a9ad3661629d65e93caa046b179cd1a.tar.gz abslibre-458e8bb98a9ad3661629d65e93caa046b179cd1a.tar.bz2 abslibre-458e8bb98a9ad3661629d65e93caa046b179cd1a.zip |
libre/icecat-i18n
-rw-r--r-- | libre/icecat-i18n/.directory | 2 | ||||
-rw-r--r-- | libre/icecat-i18n/Makefile | 38 |
2 files changed, 40 insertions, 0 deletions
diff --git a/libre/icecat-i18n/.directory b/libre/icecat-i18n/.directory new file mode 100644 index 000000000..98ec279ed --- /dev/null +++ b/libre/icecat-i18n/.directory @@ -0,0 +1,2 @@ +[Dolphin] +Timestamp=2012,3,2,21,19,19 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 |