File: orig-tar.sh

package info (click to toggle)
libswarmcache-java 1.0RC2%2Bcvs20071027-7.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 312 kB
  • sloc: java: 1,062; xml: 429; sh: 14; makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 525 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

DATE=$(echo $1|sed 's/^.*\+cvs//')
DIR=libswarmcache-java-$1.orig
TAR=../libswarmcache-java_$1.orig.tar.gz
CVSROOT=pserver:anonymous@swarmcache.cvs.sourceforge.net:/cvsroot/swarmcache

# checkout the sources and clean them up
cvs -z9 -d:$CVSROOT export -D $DATE -d $DIR swarmcache
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*CVS*'  $DIR
rm -rf $DIR

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $TAR $origDir
  echo "moved $TAR to $origDir"
fi

exit 0