1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/bin/bash
DIR=$(mktemp -d)
DATE1=$(date +"%Y-%m-%d")
DATE2=$(date +"%Y%m%d")
pushd $DIR
#cvs -d :pserver:anonymous@onemind-commons.cvs.sourceforge.net:/cvsroot/onemind-commons login
cvs -d :pserver:anonymous@onemind-commons.cvs.sourceforge.net:/cvsroot/onemind-commons export -D $DATE1 commons-invoke
mv commons-invoke libonemind-commons-invoke-java-1.1.0+cvs$DATE2.orig
tar cfz libonemind-commons-invoke-java_1.1.0+cvs$DATE2.orig.tar.gz libonemind-commons-invoke-java-1.1.0+cvs$DATE2.orig
rm -r libonemind-commons-invoke-java-1.1.0+cvs$DATE2.orig
popd
mv $DIR/libonemind-commons-invoke-java_1.1.0+cvs$DATE2.orig.tar.gz ../
rm -r $DIR
echo "Done. Have fun with ../libonemind-commons-invoke-java_1.1.0+cvs$DATE2.orig.tar.gz"
|