r562 - /scripts/export-boinc

smoe-guest at users.alioth.debian.org smoe-guest at users.alioth.debian.org
Thu Jan 18 11:16:46 CET 2007


Author: smoe-guest
Date: Thu Jan 18 11:16:46 2007
New Revision: 562

URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=562
Log:
More flexibility when checking out upstream source.

Modified:
    scripts/export-boinc

Modified: scripts/export-boinc
URL: http://svn.debian.org/wsvn/pkg-boinc/scripts/export-boinc?rev=562&op=diff
==============================================================================
--- scripts/export-boinc (original)
+++ scripts/export-boinc Thu Jan 18 11:16:46 2007
@@ -46,6 +46,12 @@
     DEBIAN_VERSION="$VERSION+cvs$DATE"
     ORIG_DIR="boinc-$DEBIAN_VERSION.orig"
     CVS_COMMAND="cvs -d $CVS_ROOT export -D $DATE -d $ORIG_DIR $CVS_MODULE"
+
+elif [ -z "$DATE" -a "$CVS" -eq 1 ]; then
+    DATE=`date +"%Y%m%d"`
+    DEBIAN_VERSION="$VERSION+cvs$DATE"
+    ORIG_DIR="boinc-$DEBIAN_VERSION.orig"
+    CVS_COMMAND="cvs -d $CVS_ROOT export -d $ORIG_DIR $CVS_MODULE"
 fi
 
 ORIG_ARCHIVE="boinc_$DEBIAN_VERSION.orig.tar.gz"
@@ -84,8 +90,13 @@
 rm -f "$ORIG_DIR/.vimrc"
 find $ORIG_DIR -name .cvsignore -exec rm '{}' \;
 
+DESTDIR=""
+if [ -d tarfiles -a -w tarfiles ]; then
+    DESTDIR="tarfiles/"
+fi
 
-tar -czf $ORIG_ARCHIVE $ORIG_DIR
-rm -rf $ORIG_DIR 
+echo "Preparing source tar file as '${DESTDIR}${ORIG_ARCHIVE}'"
+tar czf ${DESTDIR}${ORIG_ARCHIVE} ${ORIG_DIR}
+rm -rf $ORIG_DIR
 
 exit 0




More information about the pkg-boinc-commits mailing list