[med-svn] r5902 - trunk/packages/tm-align/trunk/debian
Steffen Möller
moeller at alioth.debian.org
Sat Feb 5 11:21:33 UTC 2011
Author: moeller
Date: 2011-02-05 11:21:32 +0000 (Sat, 05 Feb 2011)
New Revision: 5902
Modified:
trunk/packages/tm-align/trunk/debian/get-orig-source
Log:
Fixing my improvements. mkdir -p indeed does not fail
when directories already exist, even not for the
leaves.
Modified: trunk/packages/tm-align/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/tm-align/trunk/debian/get-orig-source 2011-02-05 11:19:09 UTC (rev 5901)
+++ trunk/packages/tm-align/trunk/debian/get-orig-source 2011-02-05 11:21:32 UTC (rev 5902)
@@ -11,13 +11,16 @@
head -n 1 | \
sed "s/Newest version on remote site is \([-0-9.]\+\),.*/\1/"`
-if [ ! -d ../tarballs ]; then mkdir -p ../tarballs ; fi
+# mkdir -p does not fail when directories exist already
+mkdir -p ../tarballs
cd ../tarballs
TARBALLDIR=`pwd`
UPSTREAMDIR=${PKG}-${VERSION}
-if [ ! -d ${UPSTREAMDIR} ]; then mkdir -p ${UPSTREAMDIR} ; fi
+
+mkdir -p ${UPSTREAMDIR}
cd ${UPSTREAMDIR}
+
tar -xzf ../../TMtools${VERSION}.tar.gz
rm -rf TMscore TMalign
More information about the debian-med-commit
mailing list