[cpl-plugin-fors] 10/40: Re-insert calib but (optionally) remove all "real" calibration files The "calib" tar file contains the subdirs "cal", "gasgano", and "dic" dubdirs. "cal" contains potentially huge fits files which can be choosen to removed not.

Ole Streicher olebole-guest at alioth.debian.org
Wed Sep 18 19:01:51 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-fors.

commit 3fd0b10260ca1323d7cc41f13e6c97893c4c8641
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Mon May 6 17:31:42 2013 +0200

    Re-insert calib but (optionally) remove all "real" calibration files
    The "calib" tar file contains the subdirs "cal", "gasgano", and "dic" dubdirs.
    "cal" contains potentially huge fits files which can be choosen to
    removed not.
---
 debian/repackage.sh |   19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/debian/repackage.sh b/debian/repackage.sh
index 38d8df5..4ea4d52 100755
--- a/debian/repackage.sh
+++ b/debian/repackage.sh
@@ -15,8 +15,9 @@ PIPELINE=$(echo ${DEBIAN_PACKAGE} | cut -d- -f3-)
 # Version number ("4.9.4")
 VERSION=$2
 
-# Sub packages
-SUBDIRS=
+# Include full calibration set?
+INCLUDE_CALIB="no"
+#INCLUDE_CALIB="yes"
 
 BASEDIR=$(dirname $3)
 FILENAME=${BASEDIR}/${PIPELINE}-kit-${VERSION}.tar.gz
@@ -26,10 +27,16 @@ rm -f ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig*.tar.gz ${FILENAME}
 mv ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-${VERSION}.tar.gz \
    ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig.tar.gz
 
-for d in ${SUBDIRS}; do
-  mv ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-${d}-${VERSION}.tar.gz \
-     ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig-${d}.tar.gz
-done
+if [ $INCLUDE_CALIB = "yes" ] ; then
+  mv ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-calib-${VERSION}.tar.gz \
+     ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig-calib.tar.gz
+else
+  tar xf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-calib-${VERSION}.tar.gz\
+      -C ${BASEDIR} --exclude ${PIPELINE}-calib-${VERSION}/cal
+  tar czf ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}.orig-calib.tar.gz \
+      -C ${BASEDIR} ${PIPELINE}-calib-${VERSION}/
+  rm -rf ${BASEDIR}/${PIPELINE}-calib-${VERSION}/ 
+fi
 
 rm -rf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/ 
 exec uupdate --no-symlink "$@"

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



More information about the debian-science-commits mailing list