let's try this again...*without* CVS substituting part of my sed lines!
authorKevin L. Mitchell <klmitch@mit.edu>
Wed, 1 Aug 2007 23:09:57 +0000 (23:09 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Wed, 1 Aug 2007 23:09:57 +0000 (23:09 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1822 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ircd/version.c.SH

index f318bb5f91558a401ba1f85af0c1a37a3eb1a18a..0e873703837ba052e120890bba99783d09f93684 100644 (file)
@@ -89,7 +89,7 @@ for file in ${srcdir}/ircd/*.[cly] ${srcdir}/ircd/version.c.SH ; do
  base=`basename $file`
  if [ $base != version.c -a $base != y.tab.c -a $base != lex.yy.c -a \
       $base != chattr.tab.c ] ; then
-  vers=`grep '$Id' $file | sed -e 's/.*\$Id$[^$]*//' | \
+  vers=`grep '$Id' $file | sed -e 's/.*\$Id\://' -e 's/\$[^$]*//' | \
        awk '{ print $2; exit; }'`
   echo "    \"[" `./umkpasswd -5 $file` " $vers ]\"," >> version.c
  fi
@@ -99,7 +99,7 @@ echo "    \"\"," >> version.c
 echo "    \"Headers:\"," >> version.c
 
 for file in ${srcdir}/include/*.h ; do
- vers=`grep '$Id' $file | sed -e 's/.*\$Id$[^$]*//' | \
+ vers=`grep '$Id' $file | sed -e 's/.*\$Id\://' -e 's/\$[^$]*//' | \
        awk '{ print $2; exit; }'`
  echo "    \"[" `./umkpasswd -5 $file` " $vers ]\"," >> version.c
 done