I'm trying to create a bash script which downloads the latest version of PHP from Github (master branch) and install it.
I would like to create a folder with the version I'm downloading (e. g. /path/to/php/5.4.0) but I cannot find any file among the source code saying "hey, I am the XXX version of PHP". Look below what my simple code does:
url="https://github.com/php/php-src/tarball/master"
curl -L $url > php-temp.tar.gz
tar -zxf php-temp.tar.gz
cd php-php-src*
I was wondering to cat|grep some VERSION or README file but I could not find any references to PHP version among them.
Does someone knows where there is a file which this information?