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