#! /usr/bin/make -f %: dh $@ --no-parallel override_dh_auto_build: debian/po/en.po chmod +x scripts/thes_to_dat dh_auto_build -- TH_NB1= TH_NN1= AWK=gawk cat words.nb | prezip -s -c | gzip -9n -c > nb.cwl.gz cat words.nn | prezip -s -c | gzip -9n -c > nn.cwl.gz override_dh_install: cd debian/tmp && \ rm -f usr/bin/inorsk-compwordsmaybe \ usr/bin/inorsk-hyphenmaybe \ usr/share/doc/spell-norwegian/COPYING \ usr/share/doc/spell-norwegian/README.myspell \ usr/share/doc/spell-norwegian/README \ usr/share/doc/spell-norwegian/thesaurus-README.txt \ usr/share/doc/spell-norwegian/NEWS mv debian/tmp/usr/share/dict/bokm?l debian/tmp/usr/share/dict/bokmål dh_install --fail-missing installdeb-ispell -pinorwegian installdeb-wordlist -pwnorwegian installdeb-aspell -paspell-no installdeb-myspell -pmyspell-nb installdeb-myspell -pmyspell-nn binary-indep: dh $@ --no-parallel iconv -f iso-8859-1 -t utf-8 < debian/wnorwegian/usr/share/dict/bokmaal | sponge debian/wnorwegian/usr/share/dict/bokmaal iconv -f iso-8859-1 -t utf-8 < debian/wnorwegian/usr/share/dict/nynorsk | sponge debian/wnorwegian/usr/share/dict/nynorsk debian/po/en.po: debian/po/templates.pot msgen -w 0 debian/po/templates.pot | sed -e 's,"Content-Type: text/plain; charset=CHARSET\\n","Content-Type: text/plain; charset=ISO-8859-1\\n",' -e '/^msgstr/s/okmaal/okmål/g' > $@ override_dh_builddeb: dh_builddeb -- -Zxz override_dh_clean: rm -f nb.cwl.gz nn.cwl.gz dh_clean