in your version.txt put it as a shell variable such as APPVER="version"
Then in your bash script use . /path/to/version.txt
then export the variable with the line export APPVER
this will then import that variable into your build script and use it where you want the name by using the variable $APPVER
Commit to change Manifest $APPVER
in answer to comment
MAJOR=`echo $APPVER| cut -c1-1` export MAJOR MINOR=`echo $APPVER | cut -c3-5` export MINOR NEWVER=$((MINOR + 1)) export NEWVER echo APPVER=$MAJOR.$NEWVER > /path/to/version.txt
EDIT: forgot to add the export command EDIT: added way to increment... and fixed some mistakes and formating