Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 28 lines (19 sloc) 0.42 kb
9c100b6 @gigamonkey Sources from my private svn repo, revision 552.
gigamonkey authored
1 #!/bin/sh
2
3 if [ -z "$1" ]; then
4 echo "Must provide CVS directory."
5 exit 1;
6 fi
7
8 cvs=$1
9
10 (cd $cvs; cvs update -dAP)
11
12 base=`basename $cvs`
13 label=`date -u +"%Y%m%d.%H%M%S"`
14
15 dir="${base}-${label}"
16
17 if [ -d ${dir} ]; then
18 echo "${dir} already exists."
19 exit 1;
20 fi
21
22 mkdir -p /tmp/$dir
23 (cd /tmp/$dir; (cd $cvs; tar cf - .) | tar xf -)
24 (cd /tmp/; tar czf $dir.tar.gz $dir)
25 mv /tmp/$dir.tar.gz .
26 echo $dir.tar.gz
27
Something went wrong with that request. Please try again.