From b4488ed0dbe174028d04c92094ded3bc71b5477e Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Wed, 1 Aug 2007 23:09:57 +0000 Subject: [PATCH] let's try this again...*without* CVS substituting part of my sed lines! 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/version.c.SH b/ircd/version.c.SH index f318bb5..0e87370 100644 --- a/ircd/version.c.SH +++ b/ircd/version.c.SH @@ -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 -- 2.20.1