diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2007-04-15 01:10:43 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2007-04-15 01:10:43 +0000 |
commit | 18fe60be6c1ab65e4407a1d9681adc6e153d61c6 (patch) | |
tree | ce889a24531af094974df5f532b93e4f0634f270 /release | |
download | rcc-tools-18fe60be6c1ab65e4407a1d9681adc6e153d61c6.tar.gz rcc-tools-18fe60be6c1ab65e4407a1d9681adc6e153d61c6.tar.bz2 rcc-tools-18fe60be6c1ab65e4407a1d9681adc6e153d61c6.tar.xz rcc-tools-18fe60be6c1ab65e4407a1d9681adc6e153d61c6.zip |
initial import
(automatically generated log message)
Diffstat (limited to 'release')
-rwxr-xr-x | release | 50 |
1 files changed, 50 insertions, 0 deletions
@@ -0,0 +1,50 @@ +#! /bin/bash + +rm -f core.* + +RDIR=~/releases +NAME=rcctools + + +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 + 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 +) |