[med-svn] r5209 - trunk/packages/ensembl/ensembl/57/debian
Steffen Möller
moeller at alioth.debian.org
Sat Sep 4 14:02:23 UTC 2010
Author: moeller
Date: 2010-09-04 14:02:22 +0000 (Sat, 04 Sep 2010)
New Revision: 5209
Modified:
trunk/packages/ensembl/ensembl/57/debian/prepare_ensembl_source_packages.sh
Log:
Yet another fix.
Modified: trunk/packages/ensembl/ensembl/57/debian/prepare_ensembl_source_packages.sh
===================================================================
--- trunk/packages/ensembl/ensembl/57/debian/prepare_ensembl_source_packages.sh 2010-09-04 12:09:12 UTC (rev 5208)
+++ trunk/packages/ensembl/ensembl/57/debian/prepare_ensembl_source_packages.sh 2010-09-04 14:02:22 UTC (rev 5209)
@@ -63,11 +63,12 @@
cd "$startdir"
echo " Renaming for looking nice to ensembl-$ensemblversion"
-if [ -d "ensembl-$ensemblversion" ]; then
- echo "Moving existing folder 'ensembl-$ensemblversion' to 'ensembl-$ensemblversion.old'"
+if [ -e "$$destdir/ensembl-$ensemblversion" ]; then
+ echo "Moving existing file/folder 'ensembl-$ensemblversion' to 'ensembl-$ensemblversion.old'"
rm -rf "ensembl-$ensemblversion.old"
- mv "ensembl-$ensemblversion" "ensembl-$ensemblversion.old"
+ mv "$$destdir/ensembl-$ensemblversion" "$$destdir/ensembl-$ensemblversion.old"
fi
+
mv "$downloaddir" "$destdir/ensembl-$ensemblversion"
cd "$destdir"
GZIP=--best tar czvf ensembl_${ensemblversion}.orig.tar.gz ensembl-$ensemblversion
More information about the debian-med-commit
mailing list