diff options
| author | foobar <sniper@php.net> | 2003-03-07 06:18:17 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2003-03-07 06:18:17 +0000 |
| commit | 3cfc8a1eccd476e174fbbe89ae5aa98ef6d62860 (patch) | |
| tree | 178040246e416baa959cd287c9a70f4247d2c737 /configure.in | |
| parent | 63dfff02b19c3fe320c82ad6daacee37ff948761 (diff) | |
| download | php-git-3cfc8a1eccd476e174fbbe89ae5aa98ef6d62860.tar.gz | |
Create php_version.h in the correct directory
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.in b/configure.in index eabade523b..1bc5e172fd 100644 --- a/configure.in +++ b/configure.in @@ -61,16 +61,15 @@ echo "#define PHP_MINOR_VERSION $MINOR_VERSION" >> php_version.h.new echo "#define PHP_RELEASE_VERSION $RELEASE_VERSION" >> php_version.h.new echo "#define PHP_EXTRA_VERSION \"$EXTRA_VERSION\"" >> php_version.h.new echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new -cmp php_version.h.new php_version.h >/dev/null 2>&1 +cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1 if test $? -ne 0 ; then - rm -f php_version.h && mv php_version.h.new php_version.h && \ - echo 'Updated php_version.h' + rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \ + echo 'Updated main/php_version.h' else rm -f php_version.h.new fi - dnl Catch common errors here to save a few seconds of our users' time dnl ------------------------------------------------------------------------- |
