r880 - /scripts/export-seti

fst at users.alioth.debian.org fst at users.alioth.debian.org
Fri Apr 4 07:28:39 UTC 2008


Author: fst
Date: Fri Apr  4 07:28:39 2008
New Revision: 880

URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=880
Log:
Updated export-seti to use SETI's Subversion repository.

Modified:
    scripts/export-seti

Modified: scripts/export-seti
URL: http://svn.debian.org/wsvn/pkg-boinc/scripts/export-seti?rev=880&op=diff
==============================================================================
--- scripts/export-seti (original)
+++ scripts/export-seti Fri Apr  4 07:28:39 2008
@@ -1,51 +1,26 @@
 #!/bin/sh
 # $Id$
-#
-# Usage: export-seti -r 5.13
-#     or export-seti -r 5.13 -d 20060515
 
 set -e
 
-CVS_ROOT=":pserver:anonymous at alien.ssl.berkeley.edu:/home/cvs/cvsroot"
-CVS_MODULE="seti_boinc"
+SVN_ROOT="https://setisvn.ssl.berkeley.edu/svn"
 
-# get options
-while getopts "r:d:" FLAG
-do
-    if test "$FLAG" = "r"; then
-        VERSION=$OPTARG
-    elif test "$FLAG" = "d"; then
-        DATE=$OPTARG
-    fi
-done
-
-# validate options
-if [ -z "$VERSION" ]; then
-    echo "Error: version number was not specified"
+ORIG_DIR="boinc-app-seti-SNAPSHOT"
+if [ -e "$ORIG_DIR" ]; then
+    echo "Error: $ORIG_DIR already exists"
     exit 1
 fi
 
-# parse options
-if [ -z "$DATE" ]; then
-    DEBIAN_VERSION="$VERSION+cvs`date +%Y%m%d`"
-    ORIG_DIR="boinc-app-seti-$DEBIAN_VERSION.orig"
-    CVS_COMMAND="cvs -d $CVS_ROOT export -r setiathome_enhanced -D now -d $ORIG_DIR $CVS_MODULE"
+svn export "$SVN_ROOT/seti_boinc" $ORIG_DIR
 
-elif [ -n "$DATE" ]; then
-    DEBIAN_VERSION="$VERSION+cvs$DATE"
-    ORIG_DIR="boinc-app-seti-$DEBIAN_VERSION.orig"
-    CVS_COMMAND="cvs -d $CVS_ROOT export -r setiathome_enhanced -D $DATE -d $ORIG_DIR $CVS_MODULE"
-fi
+REVISION=`svn info "$SVN_ROOT" | grep "Last Changed Rev:" | cut -d' ' -f4`
+VERSION="`grep AC_INIT $ORIG_DIR/configure.ac | cut -d, -f2 | sed 's/\s*//g'`"
 
-ORIG_ARCHIVE="boinc-app-seti_$DEBIAN_VERSION.orig.tar.gz"
-
-if [ -e $ORIG_ARCHIVE ]; then
-    echo "Error: $ORIG_ARCHIVE alreay exists"
+ORIG_ARCHIVE="boinc-app-seti_$VERSION~svn$REVISION.orig.tar.gz"
+if [ -e "$ORIG_ARCHIVE" ]; then
+    echo "Error: $ORIG_ARCHIVE already exists"
     exit 1
 fi
-
-echo "$CVS_COMMAND"
-$CVS_COMMAND
 
 tar -czf $ORIG_ARCHIVE $ORIG_DIR
 rm -rf $ORIG_DIR




More information about the pkg-boinc-commits mailing list