Validate contents of VERSION file

This commit is contained in:
Lucas Bickel 2018-01-19 20:56:44 +01:00
parent dbf0a7be85
commit bdc1a6e6a5
2 changed files with 46 additions and 15 deletions

View file

@ -17,11 +17,12 @@ if [ "${git_build}" = "y" ]; then
echo ${git_version} > VERSION
else
# if no file was in tarball we create one letting the user know
# travis should release tarballs with a pre-written VERSION file
# at some stage
# if you run in to this you should grab an enriched tarball built
# by travis. It already contains the VERSION file and also bundles
# all the PHP you vendors files making the install much faster on
# your part.
if [ ! -f VERSION ]; then
folder_name=$(basename `pwd`)
echo "tarball install from folder ${folder_name}" > VERSION
echo "could not detect version for VERSION file" > VERSION
fi
fi