7 if test "$1" != "-snapshot"; then
11 release
=`echo "$dir"|sed 's/^[^-]\+-\([^-]\+-[0-9]\+\)$/\1/p; d'`
13 if test "$release" == ""; then
14 echo "Invalid package name $dir."
17 versdef
="#define ION_VERSION \"${release}\""
18 perl
-p -i -e "s/^#define ION_VERSION.*/$versdef/" version.h
19 perl
-p -i -e "s/ION_VERSION/$release/" configure.ac
29 svn
export -q http
://tao.uab.es
/ion
/svn
/$1/trunk
$1
30 rm $1/rules.mk
$1/system.mk
31 ln -s ..
/rules.mk
$1/rules.mk
32 cat > $1/system-inc.mk
<< EOF
33 TOPDIR := \$(TOPDIR)/..
34 include \$(TOPDIR)/system-inc.mk
47 perl
-n -i -e 'if(s/^#DIST: (.*)/$1/){ print; <>; } else { print; }' "$@"
50 mkdist Makefile system.mk
51 mv libs.mk.dist libs.mk