From: Kevin L. Mitchell Date: Wed, 1 Aug 2007 22:28:21 +0000 (+0000) Subject: refine the list of source files a bit; include CVS version information X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=61176cf4c159f30905c6db3edf3ff99bde45916e refine the list of source files a bit; include CVS version information git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1821 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ircd/version.c.SH b/ircd/version.c.SH index 37518cd..f318bb5 100644 --- a/ircd/version.c.SH +++ b/ircd/version.c.SH @@ -1,5 +1,7 @@ #! /bin/sh +# $Id$ + echo "Extracting ircd/version.c ..." srcdir=$1 @@ -83,9 +85,13 @@ const char *infotext[] = { "Sources:", !SUB!THIS! -for file in ${srcdir}/ircd/*.c ; do - if [ `basename $file` != version.c ] ; then - echo " \"[" `./umkpasswd -5 $file` " ]\"," >> version.c +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$[^$]*//' | \ + awk '{ print $2; exit; }'` + echo " \"[" `./umkpasswd -5 $file` " $vers ]\"," >> version.c fi done @@ -93,7 +99,9 @@ echo " \"\"," >> version.c echo " \"Headers:\"," >> version.c for file in ${srcdir}/include/*.h ; do - echo " \"[" `./umkpasswd -5 $file` " ]\"," >> version.c + vers=`grep '$Id' $file | sed -e 's/.*\$Id$[^$]*//' | \ + awk '{ print $2; exit; }'` + echo " \"[" `./umkpasswd -5 $file` " $vers ]\"," >> version.c done /bin/cat >>version.c <