2007-01-25 06:40:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
spitshell=cat
|
2016-04-09 09:54:56 +00:00
|
|
|
package=charybdis
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
echo "Extracting $package/src/version.c..."
|
|
|
|
|
|
|
|
if test -r version.c.last
|
|
|
|
then
|
2016-03-24 08:00:23 +00:00
|
|
|
generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c.last`
|
2007-01-25 06:40:21 +00:00
|
|
|
if test ! "$generation" ; then generation=0; fi
|
|
|
|
else
|
|
|
|
generation=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
generation=`expr $generation + 1`
|
|
|
|
|
2016-02-16 05:29:24 +00:00
|
|
|
if test "$EXTERNAL_BUILD_TIMESTAMP" = ''; then
|
|
|
|
creation=`LC_ALL=C date | \
|
2007-01-25 06:40:21 +00:00
|
|
|
awk '{if (NF == 6) \
|
|
|
|
{ print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
|
|
|
|
else \
|
|
|
|
{ print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
|
2016-02-16 05:29:24 +00:00
|
|
|
else
|
|
|
|
creation="$EXTERNAL_BUILD_TIMESTAMP"
|
|
|
|
fi
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
$spitshell >version.c <<!SUB!THIS!
|
|
|
|
/*
|
2016-04-09 09:54:56 +00:00
|
|
|
* $package - Internet Relay Chat, src/version.c
|
2007-01-25 06:40:21 +00:00
|
|
|
* Copyright (C) 1990 Chelsea Ashley Dyerman
|
|
|
|
*
|
|
|
|
* 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 1, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is generated by version.c.SH. Any changes made will go away.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "patchlevel.h"
|
|
|
|
#include "serno.h"
|
2016-04-09 10:05:08 +00:00
|
|
|
#include "stdinc.h"
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
const char *generation = "$generation";
|
|
|
|
const char *creation = "$creation";
|
|
|
|
const char *ircd_version = PATCHLEVEL;
|
|
|
|
const char *serno = SERNO;
|
2016-03-07 23:14:28 +00:00
|
|
|
const unsigned long int datecode = DATECODE;
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
const char *infotext[] =
|
|
|
|
{
|
|
|
|
"$package --",
|
|
|
|
"Based on the original code written by Jarkko Oikarinen",
|
2016-04-09 09:54:56 +00:00
|
|
|
"Copyright (c) 1988-1991 University of Oulu, Computing Center",
|
2016-03-24 08:00:23 +00:00
|
|
|
"Copyright (c) 1996-2001 Hybrid Development Team",
|
2010-01-01 21:46:34 +00:00
|
|
|
"Copyright (c) 2002-2009 ircd-ratbox Development Team",
|
2015-12-28 06:39:38 +00:00
|
|
|
"Copyright (c) 2005-2016 charybdis development team",
|
2015-12-28 06:31:03 +00:00
|
|
|
" ",
|
2007-01-25 06:40:21 +00:00
|
|
|
"This program is free software; you can redistribute it and/or",
|
|
|
|
"modify it under the terms of the GNU General Public License as",
|
2010-02-18 05:05:47 +00:00
|
|
|
"published by the Free Software Foundation; either version 2, or",
|
2007-01-25 06:40:21 +00:00
|
|
|
"(at your option) any later version.",
|
2015-12-28 06:31:03 +00:00
|
|
|
" ",
|
2007-01-25 06:40:21 +00:00
|
|
|
!SUB!THIS!
|
|
|
|
|
2016-04-09 09:54:56 +00:00
|
|
|
sed 's/^$/ /;s/.*/\ "&\",/' ../CREDITS >> version.c
|
2007-01-25 06:40:21 +00:00
|
|
|
$spitshell >>version.c <<!SUB!THISTOO!
|
2016-04-09 09:54:56 +00:00
|
|
|
" ",
|
|
|
|
NULL,
|
2007-01-25 06:40:21 +00:00
|
|
|
};
|
|
|
|
!SUB!THISTOO!
|