10 release=`echo "$dir"|sed 's/^.\+-\([^-]\+-[0-9]\+\)$/\1/p; d'`
12 if test "$release" == ""; then
13 echo "Invalid package name $dir."
21 if test "$ION_PATH" = ""; then
22 ION_PATH="../ion-${release}"
31 d=`echo $release|sed 's/[^-]\+-\(....\)\(..\)\(..\)/\1-\2-\3/'`
33 perl -p -i -e "s/%%DATE/\\\\date{$d}/" ionconf.tex
34 sed "s:^TOPDIR=.*:TOPDIR=${ION_PATH}:" Makefile > Makefile.tmp
35 make -f Makefile.tmp all
36 make -f Makefile.tmp all-ps
37 make -f Makefile.tmp clean