various small fixes & example dev config
[ircu2.10.12-pk.git] / ircd / version.c.SH
index c0b52a905e90439afd2863218413130a5a561576..38b5d6bbfb3cc855de5285d50be33d5d19fd8c97 100644 (file)
@@ -1,8 +1,14 @@
+#!/bin/sh
+
+# $Id$
+
 echo "Extracting ircd/version.c ..."
 
+srcdir=$1
+
 if test -r version.c
 then
-   generation=`sed -n 's/^char \*generation = \"\(.*\)\";/\1/p' < version.c`
+   generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c`
    if test ! "$generation" ; then generation=0; fi
 else
    generation=0
@@ -10,33 +16,11 @@ fi
 
 generation=`expr $generation + 1`
 
-sum=sum
-if $sum s_serv.c 1> /dev/null 2>&1; then
-:
-else
-  sum=cksum
-fi
-sumsserv=`$sum s_serv.c 2> /dev/null`;
-sumsuser=`$sum s_user.c 2> /dev/null`;
-sumchan=`$sum channel.c 2> /dev/null`;
-sumsbsd=`$sum s_bsd.c 2> /dev/null`;
-sumhash=`$sum hash.c 2> /dev/null`;
-sumsmisc=`$sum s_misc.c 2> /dev/null`;
-sumircd=`$sum ircd.c 2> /dev/null`;
-
 creation=`date | \
 awk '{if (NF == 6) \
-        { print $1 " "  $2 " " $3 " "  $6 " at " $4 " " $5 } \
+        { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
 else \
-        { print $1 " "  $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
-
-cvsversion=`cat ../.patches | \
-    awk -F. '{ \
-        if ($(NF)~/\+$/) \
-           printf(".0"); \
-       else \
-           printf(".%d.(%s)", NF - 3, $(NF)); \
-    }'`
+        { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
 
 /bin/cat >version.c <<!SUB!THIS!
 /*
@@ -62,50 +46,57 @@ cvsversion=`cat ../.patches | \
  * This file is generated by version.c.SH. Any changes made will go away.
  */
 
-#include "sys.h"
-#include "h.h"
-#include "patchlevel.h"
 #include "version.h"
+#include "patchlevel.h"
+#include "patchlist.h"
 
 const char *generation = "$generation";
 const char *creation = "$creation";
-const char *version = BASE_VERSION PATCH1 "$cvsversion" PATCH2 PATCH3 PATCH4 PATCH5 PATCH6\
-       PATCH7 PATCH8 PATCH9 PATCH10 PATCH11 PATCH12 PATCH13 PATCH14 PATCH15\
-       PATCH16 PATCH17 PATCH18 PATCH19 PATCH20 PATCH21 PATCH22 PATCH23 PATCH24\
-       PATCH25 PATCH26 PATCH27 PATCH28 PATCH29 PATCH30 PATCH31 PATCH32;
+const char *version = BASE_VERSION RELEASE PATCHLEVEL PATCHLIST;
 
 const char *infotext[] = {
     "IRC --",
-    "Based on the original code written by Jarkko Oikarinen, version 2.6:",
-    "Copyright 1988, 1989, 1990, 1991 University of Oulu, Computing Center",
-    "",
-    "Wiz         Jarkko Oikarinen         <jto@tolsun.oulu.fi>",
+    "This program is free software; see LICENSE in the distribution",
     "",
-    "This program is free software; you can redistribute it and/or",
-    "modify it under the terms of the GNU General Public License as",
-    "published by the Free Software Foundation; either version 2, or",
-    "(at your option) any later version.",
+    "Based on the original code written by Jarkko Oikarinen, version 2.6:",
+    "Wiz          Jarkko Oikarinen         <jto@tolsun.oulu.fi>",
     "",
-    "The UnderNet code is based upon version 2.8.10.",
-    "The main developers of version 2.7 and 2.8 are:",
+    "The main developer of version u2.9 and u2.10 was:",
+    "Run          Carlo Wood               <carlo@runaway.xs4all.nl>",
     "",
-    "Avalon      Darren Reed              <avalon@coombs.anu.edu.au>",
-    "msa         Markku Savela            <msa@tel4.tel.vtt.fi>",
-    "Wumpus      Greg Lindahl             <lindahl@pbm.com>",
+    "The head developer of the u2.10 source tree was:",
+    "Bleep        Thomas Helvey            <tomh@inxpress.net>",
     "",
-    "The main developer of version u2.9 and u2.10 is:",
+    "The current maintainors of the u2.10 source tree are:",
+    "Isomer       Perry Lorier             <perry@coders.net>",
+    "Kev          Kevin Mitchell           <klmitch@mit.edu>",
     "",
-    "Run         Carlo Wood               <carlo@runaway.xs4all.nl>",
+    "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.  Contributers to version u2.10 can be found on",
-    "http://coder-com.undernet.org/posters.html",
-    "Thanks also to those who provided me with accounts; the kind sys",
-    "admins who let me and others continue to develop IRC.",
+    "source.",
     "",
-    "[$sumsserv] [$sumchan] [$sumsbsd] [$sumsuser]",
-    "[$sumhash] [$sumsmisc] [$sumircd]",
+    "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 <<!SUB!THIS!
     0,
 };
 !SUB!THIS!