File: get-orig-source

package info (click to toggle)
libonemind-commons-invoke-java 1.1.0%2Bcvs20090227-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 168 kB
  • sloc: java: 308; xml: 223; javascript: 29; sh: 12; makefile: 10
file content (22 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (4)
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"