]> jfr.im git - solanum.git/blame - ircd/version.c.SH
free server_p->certfp, allocated in newconf.c
[solanum.git] / ircd / version.c.SH
CommitLineData
212380e3
AC
1#!/bin/sh
2
212380e3 3spitshell=cat
b14d2bd6 4package=charybdis
212380e3
AC
5
6echo "Extracting $package/src/version.c..."
7
8if test -r version.c.last
9then
2a4b3ea6 10 generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c.last`
212380e3
AC
11 if test ! "$generation" ; then generation=0; fi
12else
13 generation=0
14fi
15
16generation=`expr $generation + 1`
17
a393a68a
AB
18if test "$EXTERNAL_BUILD_TIMESTAMP" = ''; then
19 creation=`LC_ALL=C date | \
212380e3
AC
20awk '{if (NF == 6) \
21 { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
22else \
23 { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
a393a68a
AB
24else
25 creation="$EXTERNAL_BUILD_TIMESTAMP"
26fi
212380e3
AC
27
28$spitshell >version.c <<!SUB!THIS!
29/*
b14d2bd6 30 * $package - Internet Relay Chat, src/version.c
212380e3
AC
31 * Copyright (C) 1990 Chelsea Ashley Dyerman
32 *
33 * This program is free software; you can redistribute it and/or modify
34 * it under the terms of the GNU General Public License as published by
35 * the Free Software Foundation; either version 1, or (at your option)
36 * any later version.
37 *
38 * This program is distributed in the hope that it will be useful,
39 * but WITHOUT ANY WARRANTY; without even the implied warranty of
40 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41 * GNU General Public License for more details.
42 *
43 * You should have received a copy of the GNU General Public License
44 * along with this program; if not, write to the Free Software
45 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
46 */
47
48/*
49 * This file is generated by version.c.SH. Any changes made will go away.
50 */
51
52#include "patchlevel.h"
53#include "serno.h"
02fa4362 54#include "stdinc.h"
212380e3
AC
55
56const char *generation = "$generation";
57const char *creation = "$creation";
212380e3
AC
58const char *ircd_version = PATCHLEVEL;
59const char *serno = SERNO;
749d697c 60const unsigned long int datecode = DATECODE;
212380e3
AC
61
62const char *infotext[] =
63{
64 "$package --",
65 "Based on the original code written by Jarkko Oikarinen",
b14d2bd6 66 "Copyright (c) 1988-1991 University of Oulu, Computing Center",
2a4b3ea6 67 "Copyright (c) 1996-2001 Hybrid Development Team",
22df9f89 68 "Copyright (c) 2002-2009 ircd-ratbox Development Team",
0950390c 69 "Copyright (c) 2005-2016 charybdis development team",
9603d011 70 " ",
212380e3
AC
71 "This program is free software; you can redistribute it and/or",
72 "modify it under the terms of the GNU General Public License as",
cb7f3af4 73 "published by the Free Software Foundation; either version 2, or",
212380e3 74 "(at your option) any later version.",
9603d011 75 " ",
212380e3
AC
76!SUB!THIS!
77
b14d2bd6 78sed 's/^$/ /;s/.*/\ "&\",/' ../CREDITS >> version.c
212380e3 79$spitshell >>version.c <<!SUB!THISTOO!
b14d2bd6
EM
80 " ",
81 NULL,
212380e3
AC
82};
83!SUB!THISTOO!