From 37ad5f3027b82e55766cfbff06616ba03dc674e3 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Thu, 13 Aug 2015 20:07:18 +0200 Subject: improve debian/merge-lumina-i18n.sh --- debian/merge-lumina-i18n.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'debian/merge-lumina-i18n.sh') diff --git a/debian/merge-lumina-i18n.sh b/debian/merge-lumina-i18n.sh index 66194513..7bdded0c 100755 --- a/debian/merge-lumina-i18n.sh +++ b/debian/merge-lumina-i18n.sh @@ -23,5 +23,11 @@ for lng in ${LANGS[@]}; do done echo "updated lumina translations." -git commit */i18n/ -m "merge latest translations from https://github.com/pcbsd/lumina-i18n.git" + +# satisfy dpkg-source when building a GIT snapshot +# first ensure all translations are known to GIT +# then create a commit using only the translation files +# other changes to the source will still be tracked by dpkg-source +[[ -d "${CURDIR}"/.git ]] && ( git add */i18n/*.ts && git commit */i18n/*.ts \ + -m "merge latest translations from https://github.com/pcbsd/lumina-i18n.git" ) rm -rf lumina-i18n -- cgit