summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
Diffstat (limited to 'release')
-rwxr-xr-xrelease6
1 files changed, 4 insertions, 2 deletions
diff --git a/release b/release
index 74c9759..b4c643a 100755
--- a/release
+++ b/release
@@ -14,8 +14,8 @@ if [ ! -d $RDIR ]; then
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'; } }"`
+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
@@ -41,6 +41,8 @@ cp -a * $RDIR/$rname
find . -name CMakeFiles -print0 | xargs -0 rm -rf
find . -name CMakeCache.txt -print0 | xargs -0 rm -rf
find . -name cmake_install.cmake -print0 | xargs -0 rm -rf
+ find . -name "*~" -print0 | xargs -0 rm -rf
+
rm -rf autom4te*.cache
rm -rf "{arch}"
rm -rf `find . -name .arch-ids`