diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 13:14:38 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 13:14:38 +0300 |
commit | fae4762eba9ff7bb466a600130e9c90eaac6b0bc (patch) | |
tree | 62711fe7cd511824b5f8a90ba1ba7b523d42e127 /fixvers | |
parent | bc70de7b3302d5a81515b901cae376b8b51d2004 (diff) | |
download | egawk-fae4762eba9ff7bb466a600130e9c90eaac6b0bc.tar.gz egawk-fae4762eba9ff7bb466a600130e9c90eaac6b0bc.tar.bz2 egawk-fae4762eba9ff7bb466a600130e9c90eaac6b0bc.zip |
Move to gawk-3.1.1.
Diffstat (limited to 'fixvers')
-rwxr-xr-x | fixvers | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -3,7 +3,7 @@ # fixvers --- make sure version.c and patchlev.h reflect # the reality in configure.in # -# Copyright (C) 2001 the Free Software Foundation, Inc. +# Copyright (C) 2001, 2002 the Free Software Foundation, Inc. # # This file is part of GAWK, the GNU implementation of the # AWK Programming Language. @@ -26,11 +26,11 @@ line=`grep AM_INIT_AUTOMAKE configure.in` case $1 in -v) - VERS=`echo $line | sed 's/.*, *\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\))/\1.\2/'` + VERS=`echo $line | sed 's/.*, *\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9a-z]*\))/\1.\2/'` sed "s/X\.Y/$VERS/" < version.in > version.new - if cmp version.c version.new + if [ -f version.c ] && cmp version.c version.new then - : + rm version.new else mv version.new version.c fi @@ -38,11 +38,11 @@ case $1 in ;; -p) - LEV=`echo $line | sed 's/.*, *\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\))/\3/'` + LEV=`echo $line | sed 's/.*, *\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9a-z]*\))/\"\3\"/'` echo "#define PATCHLEVEL $LEV" > patchlev.new - if cmp patchlev.h patchlev.new + if [ -f patchlev.h ] && cmp patchlev.h patchlev.new then - : + rm patchlev.new else mv patchlev.new patchlev.h fi |