[med-svn] [SCM] clinica branch, master, updated. 02aab1b0905986fab7c965e6b8705f2841743c17

Andreas Tille tille at debian.org
Fri Jan 13 22:06:52 UTC 2012


The following commit has been merged in the master branch:
commit 5d88719a123f0e55bca31e7d56e964aa442381ee
Author: Andreas Tille <tille at debian.org>
Date:   Fri Jan 13 23:04:13 2012 +0100

    Use $NAME consequently, make sure resulting tarball will be identical each time it is builded

diff --git a/debian/get-orig-source b/debian/get-orig-source
index b79d1c2..89d37d6 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -16,9 +16,9 @@ else
 fi
 
 LATESTVERSION=0.2.1
-LATESTORIGDOWNLOAD=clinica-${LATESTVERSION}.tar.bz2
-LATESTRELEASE=http://launchpad.net/clinica-project/stable/${LATESTVERSION}/+download/${LATESTORIGDOWNLOAD}
-TARFILE=clinica-${LATESTVERSION}~dfsg.tar.bz2
+LATESTORIGDOWNLOAD=${NAME}-${LATESTVERSION}.tar.bz2
+LATESTRELEASE=http://launchpad.net/${NAME}-project/stable/${LATESTVERSION}/+download/${LATESTORIGDOWNLOAD}
+TARFILE=${NAME}-${LATESTVERSION}~dfsg.tar.bz2
 
 # Removing old temporary files, if present, 
 # and then downloading the latest release,
@@ -33,7 +33,7 @@ else
     wget -q -N "${LATESTRELEASE}"
 fi
 tar xjf ${LATESTORIGDOWNLOAD}
-cd clinica-${LATESTVERSION}
+cd ${NAME}-${LATESTVERSION}
 echo "Unpacking waf.."
 ./waf --help >/dev/null
 mv .waf-*/waflib waflib
@@ -42,7 +42,7 @@ rmdir .waf-*
 find . -name \*.pyc -delete
 cd ..
 rm -f ${LATESTORIGDOWNLOAD}
-tar cjf "${TARFILE}" "clinica-${LATESTVERSION}/"
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX cjf "${TARFILE}" "${NAME}-${LATESTVERSION}/"
 mv "${TARFILE}" ..
 
 rm get-orig-source -rf

-- 
Simple medical records manager



More information about the debian-med-commit mailing list