summaryrefslogtreecommitdiffstats
path: root/ast/getnewversion
blob: b05f6d0468bba4b78e83f84dd63ca968cf6ad86b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#  Prompt for new AST version number and store in "version.number"
#  file in repository. Don't prompt if $AST_VERSION already specifies
#  a version to use (just store the new value in the file).
version="${AST_VERSION}"
if test ! -n "${version}"; then
   old_version="`cat ./version.number`"
   echo;
   echo "Always include a release number !!! (e.g. \"2.0-1\")"
   echo -n "New version number /${old_version}/ > "
   read version;
   echo;
   if test ! -n "${version}"; then version="${old_version}"; fi
fi
echo "${version}" >version.number