[cpl-plugin-uves] 06/14: Remove unneeded html subdir from sources

Ole Streicher olebole-guest at moszumanska.debian.org
Sat Dec 7 16:54:36 UTC 2013


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

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

commit fe24f11d66651eb80668d27c97d9c3c52f988429
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-science/packages/cpl-plugin-uves.git



More information about the debian-science-commits mailing list