diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-10 16:16:32 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-10 16:16:32 -0500 |
commit | 02dc85a95b228b7242b0d11ea35619faad96db03 (patch) | |
tree | e161ba877a0720bbdf7818bdec06eb239d8ad271 /ubuntu/precise/applications/koffice-i18n/debian/rules | |
parent | 6f2c7dc70e77d2f768d687838b6cc9f7632f609e (diff) | |
download | tde-packaging-02dc85a95b228b7242b0d11ea35619faad96db03.tar.gz tde-packaging-02dc85a95b228b7242b0d11ea35619faad96db03.zip |
Split precise from maverick
Diffstat (limited to 'ubuntu/precise/applications/koffice-i18n/debian/rules')
-rwxr-xr-x | ubuntu/precise/applications/koffice-i18n/debian/rules | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/ubuntu/precise/applications/koffice-i18n/debian/rules b/ubuntu/precise/applications/koffice-i18n/debian/rules new file mode 100755 index 000000000..9bb59484f --- /dev/null +++ b/ubuntu/precise/applications/koffice-i18n/debian/rules @@ -0,0 +1,88 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +languages = `ls -1d *i18n*` + +build-stamp: + dh_testdir + + # Regenerate build system + ! [ -f /usr/share/libtool/ltmain.sh ] || \ + cp -f /usr/share/libtool/ltmain.sh admin/ltmain.sh + ! [ -f /usr/share/libtool/config/ltmain.sh ] || \ + cp -f /usr/share/libtool/config/ltmain.sh admin/ltmain.sh + cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in + + #Configure languages. + -for i in $(languages); do \ + cd $$i && \ + autoreconf && automake -f && $(MAKE) -f ../admin/Makefile.common && \ + ./configure $(configkde); \ + $(MAKE); \ + cd ..; \ + done + + touch build-stamp + +build: build-stamp +-include debian/debiandirs + +clean: + dh_clean + dh_testdir + + # Remove all language directories. + rm -rf build-stamp + rm -rf debian/*18n* + +binary-indep: build + dh_testdir + dh_testroot + dh_clean -k + + -for i in $(languages); do \ + ( \ + cd $$i && \ + echo $$(install_dir) && \ + $(MAKE) install DESTDIR=`pwd`/../debian/$$i-trinity; \ + cd .. \ + ) \ + done + + + mkdir debian/koffice-i18n-engb-trinity + cp -aR debian/koffice-i18n-en_GB-trinity/* debian/koffice-i18n-engb-trinity/ + + mkdir debian/koffice-i18n-ptbr-trinity + cp -aR debian/koffice-i18n-pt_BR-trinity/* debian/koffice-i18n-ptbr-trinity/ + + mkdir debian/koffice-i18n-srlatin-trinity + cp -aR debian/koffice-i18n-sr@Latn-trinity/* debian/koffice-i18n-srlatin-trinity/ + + mkdir debian/koffice-i18n-zhcn-trinity + cp -aR debian/koffice-i18n-zh_CN-trinity/* debian/koffice-i18n-zhcn-trinity/ + + mkdir debian/koffice-i18n-zhtw-trinity + cp -aR debian/koffice-i18n-zh_TW-trinity/* debian/koffice-i18n-zhtw-trinity/ + + + #Removing duplicate kdgantt.mo files. + -rm -f `find . -name "kdgantt.mo"` + + dh_installdocs + dh_installmenu + dh_installchangelogs + dh_strip + dh_link + dh_compress -X.docbook -X.css -X-license -X.dcl -X.bz2 + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep + +.PHONY: binary binary-indep clean |