[cpl-plugin-template] 42/58: Remove unneeded html subdir from sources

Ole Streicher olebole at moszumanska.debian.org
Tue Mar 31 09:23:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian-template
in repository cpl-plugin-template.

commit 3483acd1a4b4ef0f7f78c4126d833f4554ffba2a
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Tue Dec 3 09:46:33 2013 +0100

    Remove unneeded html subdir from sources
---
 debian/repackage.sh | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/debian/repackage.sh b/debian/repackage.sh
index eb4be41..70f0a57 100755
--- a/debian/repackage.sh
+++ b/debian/repackage.sh
@@ -32,17 +32,17 @@ FILENAME=${BASEDIR}/${PIPELINE}-kit-${VERSION}.tar.gz
 tar xf ${FILENAME} -C ${BASEDIR}
 rm -f ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig*.tar.gz ${FILENAME}
 
-if [ $INCLUDE_TEST_DATA = "yes" ] ; then
-  mv ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-${VERSION}.tar.gz \
-     ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig.tar.gz
-else
-  tar xf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-${VERSION}.tar.gz\
-      -C ${BASEDIR} --exclude ${PIPELINE}-${VERSION}/*/tests/ref_data
-  tar czf ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig.tar.gz \
-      -C ${BASEDIR} ${PIPELINE}-${VERSION}/
-  rm -rf ${BASEDIR}/${PIPELINE}-${VERSION}/ 
+TAREXCLUDE="--exclude ${PIPELINE}-${VERSION}/html"
+if [ $INCLUDE_TEST_DATA = "no" ] ; then
+  TAREXCLUDE+=" --exclude ${PIPELINE}-${VERSION}/*/tests/ref_data"
 fi
 
+tar xf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-${VERSION}.tar.gz\
+    -C ${BASEDIR} ${TAREXCLUDE}
+tar czf ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig.tar.gz \
+    -C ${BASEDIR} ${PIPELINE}-${VERSION}/
+rm -rf ${BASEDIR}/${PIPELINE}-${VERSION}/
+
 if [ $INCLUDE_CALIB = "yes" ] ; then
   mv ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-calib-${VERSION}.tar.gz \
      ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig-calib.tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/cpl-plugin-template.git



More information about the debian-science-commits mailing list