#!/bin/sh
spitshell=cat
-package=IRC
+package=charybdis
echo "Extracting $package/src/version.c..."
generation=`expr $generation + 1`
+if test -n "$SOURCE_DATE_EPOCH" -a "$EXTERNAL_BUILD_TIMESTAMP" = '' ; then
+ EXTERNAL_BUILD_TIMESTAMP=$SOURCE_DATE_EPOCH
+fi
if test "$EXTERNAL_BUILD_TIMESTAMP" = ''; then
creation=`LC_ALL=C date | \
awk '{if (NF == 6) \
$spitshell >version.c <<!SUB!THIS!
/*
- * IRC - Internet Relay Chat, src/version.c
+ * $package - Internet Relay Chat, src/version.c
* Copyright (C) 1990 Chelsea Ashley Dyerman
*
* This program is free software; you can redistribute it and/or modify
#include "patchlevel.h"
#include "serno.h"
+#include "stdinc.h"
const char *generation = "$generation";
const char *creation = "$creation";
{
"$package --",
"Based on the original code written by Jarkko Oikarinen",
- "Copyright 1988, 1989, 1990, 1991 University of Oulu, Computing Center",
+ "Copyright (c) 1988-1991 University of Oulu, Computing Center",
"Copyright (c) 1996-2001 Hybrid Development Team",
"Copyright (c) 2002-2009 ircd-ratbox Development Team",
"Copyright (c) 2005-2016 charybdis development team",
" ",
!SUB!THIS!
-IFS='
-'
-for i in `grep -v '^$Id' ../CREDITS |tr -d '"'` ; do
-echo " \"$i\"," >> version.c
-done
+sed 's/^$/ /;s/.*/\ "&\",/' ../CREDITS >> version.c
$spitshell >>version.c <<!SUB!THISTOO!
- "",
- 0,
+ " ",
+ NULL,
};
!SUB!THISTOO!