r564 - /scripts/export-boinc
fst-guest at users.alioth.debian.org
fst-guest at users.alioth.debian.org
Thu Jan 18 17:49:47 CET 2007
Author: fst-guest
Date: Thu Jan 18 17:49:46 2007
New Revision: 564
URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=564
Log:
Also look for other DEST_DIRs like tarfiles/boinc, tarballs and tarballs/boinc.
E.g. my BOINC tarballs are stored in pkg-boinc/tarballs/boinc.
Modified:
scripts/export-boinc
Modified: scripts/export-boinc
URL: http://svn.debian.org/wsvn/pkg-boinc/scripts/export-boinc?rev=564&op=diff
==============================================================================
--- scripts/export-boinc (original)
+++ scripts/export-boinc Thu Jan 18 17:49:46 2007
@@ -3,9 +3,17 @@
#
# Usage: export-boinc -r 4.72
# or export-boinc -r 4.72 -d 20050724
-# or export-boinc -r 4.72 -d 20050724 -c
+# or export-boinc -r 4.72 -d 20050724 -c
+# or export-boinc -r 4.72 -c
set -e
+
+set_destdir()
+{
+ if [ -d "$1" -a -w "$1" ]; then
+ DEST_DIR="$1/"
+ fi
+}
CVS_ROOT=":pserver:anonymous at alien.ssl.berkeley.edu:/home/cvs/cvsroot"
CVS_MODULE="boinc"
@@ -52,10 +60,10 @@
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"`
+ 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"
+ CVS_COMMAND="cvs -d $CVS_ROOT export -D now -d $ORIG_DIR $CVS_MODULE"
fi
ORIG_ARCHIVE="boinc_$DEBIAN_VERSION.orig.tar.gz"
@@ -94,13 +102,15 @@
rm -f "$ORIG_DIR/.vimrc"
find $ORIG_DIR -name .cvsignore -exec rm '{}' \;
-DESTDIR=""
-if [ -d tarfiles -a -w tarfiles ]; then
- DESTDIR="tarfiles/"
-fi
+# look for directories where we can place the orig tarball
+DEST_DIR=""
+set_destdir "tarfiles"
+set_destdir "tarfiles/boinc"
+set_destdir "tarballs"
+set_destdir "tarballs/boinc"
-echo "Preparing source tar file as '${DESTDIR}${ORIG_ARCHIVE}'"
-tar czf ${DESTDIR}${ORIG_ARCHIVE} ${ORIG_DIR}
+echo "Preparing source tarball as '$DEST_DIR$ORIG_ARCHIVE'"
+tar czf $DEST_DIR$ORIG_ARCHIVE $ORIG_DIR
rm -rf $ORIG_DIR
exit 0
More information about the pkg-boinc-commits
mailing list