home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / in4wjcxu / other / irc / ircd / version.c.sh < prev    next >
Encoding:
Text File  |  1996-08-14  |  3.8 KB  |  117 lines

  1. case $CONFIG in
  2. '')     if test -r ../config.sh
  3.      then 
  4.         . ../config.sh ;
  5.      else 
  6.         spitshell=cat
  7.         package=IRC
  8.      fi
  9.      ;;
  10. esac
  11.  
  12. echo "Extracting $package/ircd/version.c..."
  13.  
  14. if test -r version.c
  15. then
  16.    generation=`sed -n 's/^char \*generation = \"\(.*\)\";/\1/p' < version.c`
  17.    if test ! "$generation" ; then generation=0; fi
  18. else
  19.    generation=0
  20. fi
  21.  
  22. generation=`expr $generation + 1`
  23.  
  24. sumsserv=`sum s_serv.c`;
  25. sumsuser=`sum s_user.c`;
  26. sumchan=`sum channel.c`;
  27. sumsbsd=`sum s_bsd.c`;
  28. sumhash=`sum hash.c`;
  29. sumsmisc=`sum s_misc.c`;
  30. sumircd=`sum ircd.c`;
  31.  
  32. creation=`date | \
  33. awk '{if (NF == 6) \
  34.          { print $1 " "  $2 " " $3 " "  $6 " at " $4 " " $5 } \
  35. else \
  36.          { print $1 " "  $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
  37.  
  38. $spitshell >version.c <<!SUB!THIS!
  39. /*
  40.  *   IRC - Internet Relay Chat, ircd/version.c
  41.  *   Copyright (C) 1990 Chelsea Ashley Dyerman
  42.  *
  43.  *   This program is free software; you can redistribute it and/or modify
  44.  *   it under the terms of the GNU General Public License as published by
  45.  *   the Free Software Foundation; either version 1, or (at your option)
  46.  *   any later version.
  47.  *
  48.  *   This program is distributed in the hope that it will be useful,
  49.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  50.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  51.  *   GNU General Public License for more details.
  52.  *
  53.  *   You should have received a copy of the GNU General Public License
  54.  *   along with this program; if not, write to the Free Software
  55.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  56.  */
  57.  
  58. /*
  59.  * This file is generated by version.c.SH. Any changes made will go away.
  60.  */
  61.  
  62. #include "struct.h"
  63. #include "patchlevel.h"
  64.  
  65. char *generation = "$generation";
  66. char *creation = "$creation";
  67. char *version = PATCHLEVEL;
  68.  
  69. char *infotext[] =
  70.     {
  71.     "$package --",
  72.     "Based on the original code written by Jarkko Oikarinen",
  73.     "Copyright 1988, 1989, 1990, 1991 University of Oulu, Computing Center",
  74.     "",
  75.     "This program is free software; you can redistribute it and/or",
  76.     "modify it under the terms of the GNU General Public License as",
  77.     "published by the Free Software Foundation; either version 1, or",
  78.     "(at your option) any later version.",
  79.     "",
  80.     "The following persons have made many changes and enhancements to the",
  81.     "code and still know how IRC really works if you have questions about it:",
  82.     "",
  83.     "Avalon       Darren Reed              avalon@coombs.anu.edu.au",
  84.     "msa          Markku Savela            Markku.Savela@vtt.fi",
  85.     "Wumpus       Greg Lindahl             gl8f@virginia.edu",
  86.     "WiZ          Jarkko Oikarinen         jto@tolsun.oulu.fi",
  87.     "Argv         Armin Gruner             Armin.Gruner@Informatik.TU-Muenchen.de",
  88.     "",
  89.     "Thanks to the following people for help with preparing 2.8",
  90.     "",
  91.     "phone        Matthew Green            phone@coombs.anu.edu.au",
  92.     "Sodapop      Chuck Kane               ckane@ece.uiuc.edu",
  93.     "Skygod       Matt Lyle                matt@oc.com",
  94.     "Vesa         Vesa Ruokonen            ruokonen@lut.fi",
  95.     "Nap          Nicolas PIOCH            pioch@poly.polytechnique.fr",
  96.     "",
  97.     "Those who helped in prior versions and continue to be helpful:",
  98.     "",
  99.      "Stellan Klebom      Dan Goodwin         Mike Bolotski",
  100.     "Ian Frechette       Markku Jarvinen     Kimmo Suominen",
  101.     "Jeff Trim           Vijay Subramaniam   Karl Kleinpaste",
  102.     "Bill Wisner         Tom Davis           Hugo Calendar",
  103.     "Tom Hopkins         Stephen van den Berg",
  104.     "Bo Adler            Michael Sandrof     Jon Solomon",
  105.     "Jan Peterson        Helen Rose          Paul Graham",
  106.     "",
  107.     "Thanks also goes to those persons not mentioned here who have added",
  108.     "their advice, opinions, and code to IRC.",
  109.     "Thanks also to those who provide the kind sys admins who let me and",
  110.     "others continue to develop IRC.",
  111.     "",
  112.     "[$sumsserv] [$sumchan] [$sumsbsd] [$sumsuser]",
  113.     "[$sumhash] [$sumsmisc] [$sumircd]",
  114.     0,
  115.     };
  116. !SUB!THIS!
  117.