diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-01-08 22:01:47 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2014-01-08 22:01:47 +0400 |
commit | 8869581bf411476d41e99db48ef3895a7dcf32fe (patch) | |
tree | 84fd53e9a0c833706dc43df3051ea27fcca093ba /configure | |
parent | 9b9fd8aaa1336ab71ff63b9cfcbbcca920c74071 (diff) |
Use correct configuration file
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -180,11 +180,9 @@ configure_packages () create_local_config () { - # Get the version from configure.in, if it exists - if test -a $path/configure.in; then - ver=`grep AC_INIT $path/configure.in | cut -d "," -f 2 | sed "s/ //"` - elif test -a $path/configure; then - ver=`grep ^VERSION= $path/configure | cut -d "=" -f 2 | sed "s/ //"` + # Get the version from the version.txt file, if it exists + if test -a $path/version.txt; then + ver=`grep ^Version $path/version.txt|cut -d '=' -f 2|tr -d '\n'` else ver=VERSION fi |