X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fversion.c.SH;fp=ircd%2Fversion.c.SH;h=fca1804cef8867efb19d23011e3088b44b8b57a8;hp=0000000000000000000000000000000000000000;hb=0400a5a6479398d82526785c18c0df8bc8b92dce;hpb=d17e10da972ce5776c60b4c317267c6abe0e1ead diff --git a/ircd/version.c.SH b/ircd/version.c.SH new file mode 100644 index 0000000..fca1804 --- /dev/null +++ b/ircd/version.c.SH @@ -0,0 +1,102 @@ +#! /bin/sh + +# $Id$ + +echo "Extracting ircd/version.c ..." + +srcdir=$1 + +if test -r version.c +then + generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c` + if test ! "$generation" ; then generation=0; fi +else + generation=0 +fi + +generation=`expr $generation + 1` + +creation=`date | \ +awk '{if (NF == 6) \ + { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \ +else \ + { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'` + +/bin/cat >version.c <", + "", + "The main developer of version u2.9 and u2.10 was:", + "Run Carlo Wood ", + "", + "The head developer of the u2.10 source tree was:", + "Bleep Thomas Helvey ", + "", + "The current maintainors of the u2.10 source tree are:", + "Isomer Perry Lorier ", + "Kev Kevin Mitchell ", + "", + "Contributors to this release:", + "Kev, Isomer, Gte, Ghostwolf, Bleep", + "Debugging and support:", + "SeKs, Maniac-, HeKTik, OmniDynmc, Liandrin, Dianora", + "Special thanks to Angel and Buff for believing in us and putting" + "up with frantic late night phone calls" + "", + "Thanks goes to all other people who contributed to any version.", + "A full listing of all coders can be found in doc/Authors in the", + "source.", + "", + "Sources:", +!SUB!THIS! + +( for file in ${srcdir}/ircd/*.[cly] ${srcdir}/ircd/version.c.SH ; do + case `basename $file` in + version.c | y.tab.c | lex.yy.c | chattr.tab.c ) ;; + * ) echo $file ;; + esac done ) | ./umkpasswd -5 >> version.c + +echo " \"\"," >> version.c +echo " \"Headers:\"," >> version.c + +( for file in ${srcdir}/include/*.h ; do echo $file ; done ) | ./umkpasswd -5 >> version.c + +/bin/cat >>version.c <