diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -191,11 +191,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.config file, if it exists + if test -a version.config; then + ver=`grep ^Version version.config|cut -d '=' -f 2|tr -d '\n'` else ver=VERSION fi |