[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] 'fixvers'
From: |
Grant Erickson |
Subject: |
[PATCH] 'fixvers' |
Date: |
Fri, 5 Oct 2001 11:50:25 -0700 (PDT) |
The following patch for fixvers account for the fact that the gawk sources
may be under control of a ClearCase-like version control system and that
the files might not exist initially:
--- fixvers@@/main/1 Tue Sep 18 17:02:28 2001
+++ fixvers Fri Oct 5 11:44:45 2001
@@ -28,7 +28,7 @@
-v)
VERS=`echo $line | sed 's/.*,
*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\))/\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
:
else
@@ -40,7 +40,7 @@
-p)
LEV=`echo $line | sed 's/.*,
*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\))/\3/'`
echo "#define PATCHLEVEL $LEV" > patchlev.new
- if cmp patchlev.h patchlev.new
+ if [ -f patchlev.h ] && cmp patchlev.h patchlev.new
then
:
else
--
Grant Erickson Phone: (408) 487-8087
Brocade Communications Systems, Inc. Fax: (408) 392-1702
1745 Technology Drive
San Jose, CA 95110 E-mail: address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] 'fixvers',
Grant Erickson <=