summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-06-28 16:37:40 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-06-28 16:37:40 +0000
commite491cf8ad72d6752af8dac345d3bbc491e21a13a (patch)
treedb41b453a116c64cbac10f51aeec3c68d954cce6 /release
parent70fbe7822024d0acc68df3607ff25bf8d7a71751 (diff)
downloadlibrcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.gz
librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.bz2
librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.xz
librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.zip
0.1.6
* Function name is changed to conform LibRCC naming conventions * AutoConf Improvements * Release Script * Other minor changes
Diffstat (limited to 'release')
-rwxr-xr-xrelease52
1 files changed, 52 insertions, 0 deletions
diff --git a/release b/release
new file mode 100755
index 0000000..fa578bf
--- /dev/null
+++ b/release
@@ -0,0 +1,52 @@
+#! /bin/bash
+
+rm -f core.*
+
+RDIR=~/releases
+NAME=librcd
+
+
+if [ ! -d $RDIR ]; then
+ if [ -a $RDIR ]; then
+ echo "Release directory isn't a directory!"
+ exit
+ fi
+ mkdir -p $RDIR
+fi
+
+version=`cat VERSION | perl -e "while (<STDIN>) { if (m/(\d\.\d(.\d)?)/) { print \\$1; } }"`
+cvs=`cat VERSION | perl -e "while (<STDIN>) { if (m/\d\.\d(.\d)?.*(cvs|CVS|Cvs)/) { print 'cvs'; } }"`
+if [ "$cvs" == "cvs" ]; then
+ rname="$NAME-`date +%y%m%d.%H`"
+else
+ rname="$NAME-$version";
+fi
+if [ -d $RDIR/$rname ]; then
+ rm -rf $RDIR/$rname
+fi
+mkdir -p $RDIR/$rname
+if [ ! -d $RDIR/$rname ]; then
+ echo "Can't create directory!!!"
+ exit
+fi
+cp -a * $RDIR/$rname
+#cp -al * $RDIR/$rname
+
+(
+ cd $RDIR/$rname
+ ./autogen.sh
+ ./configure
+ make clean
+ make clean -C examples
+ make clean -C statgen
+ rm -rf autom4te*.cache
+ rm -rf "{arch}"
+ rm -rf `find . -name .arch-ids`
+ rm -rf `find . -name .deps`
+ cd ..
+ if [ -a $rname.tar.bz2 ]; then
+ rm -f $rname.tar.bz2
+ fi
+ tar cjf $rname.tar.bz2 $rname
+ rm -rf $rname
+)