3
# Uncomment this to turn on verbose mode.
6
PKGNAME=$(shell grep "^Package: " debian/control | head -1 | cut -f 2 -d\ )
7
PKG=$(shell pwd)/debian/$(PKGNAME)
8
LOCALEDIR=$(PKG)/usr/share/locale-langpack
27
find -type d -exec mkdir -p "$(LOCALEDIR)/{}" \; ; \
28
find -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -o $(LOCALEDIR)/\$${N%.po}.mo \$$N" \;
30
cd debian/upgrade-notes; for f in `ls`; do \
31
[ -e ../postinst ] || echo -e "#!/bin/sh -e\n\
32
[ \"\$$1\" = configure ] || exit 0\n\
33
[ -d /var/lib/update-notifier/user.d ] || exit 0\n\n" > ../postinst; \
34
echo -e "if dpkg --compare-versions \"\$$2\" lt-nl \"$$f\"; then\n \
35
cat <<EOF > /var/lib/update-notifier/user.d/language-pack-he_$$f;" >> ../postinst; \
36
cat $$f >> ../postinst; \
37
echo 'EOF' >> ../postinst; \
38
echo 'fi' >> ../postinst; \
41
[ ! -e data/extra.tar ] || tar -C $(PKG) -xf data/extra.tar
42
[ ! -e data/mozilla.tar.gz ] || tar -C $(PKG) -xzf data/mozilla.tar.gz
45
dh_installchangelogs -i
51
dh_builddeb -i -- -Z bzip2
53
binary: binary-arch binary-indep
55
.PHONY: build clean binary-indep binary-arch binary