adding git version as revision now
authorpk910 <philipp@zoelle1.de>
Wed, 13 Jul 2011 13:13:05 +0000 (15:13 +0200)
committerpk910 <philipp@zoelle1.de>
Wed, 13 Jul 2011 13:13:05 +0000 (15:13 +0200)
ircd/version.c [deleted file]
ircd/version.c.SH

diff --git a/ircd/version.c b/ircd/version.c
deleted file mode 100644 (file)
index 7f74b2b..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * IRC - Internet Relay Chat, ircd/version.c
- * 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 "version.h"
-#include "patchlevel.h"
-
-const char *generation = "313";
-const char *creation = "Mon Jun 27 2011 at 23:27:26 CEST";
-const char *version = BASE_VERSION RELEASE PATCHLEVEL PATCHSET;
-const char *svn_srev = "0";
-
-const char *infotext[] = {
-    "IRC --",
-    "This program is free software; see LICENSE in the distribution",
-    "",
-    "Based on the original code written by Jarkko Oikarinen, version 2.6:",
-    "Wiz          Jarkko Oikarinen         <jto@tolsun.oulu.fi>",
-    "",
-    "The main developer of version u2.9 and u2.10 was:",
-    "Run          Carlo Wood               <carlo@runaway.xs4all.nl>",
-    "",
-    "The head developer of the u2.10 source tree was:",
-    "Bleep        Thomas Helvey            <tomh@inxpress.net>",
-    "",
-    "The current maintainors of the u2.10 source tree are:",
-    "Isomer       Perry Lorier             <perry@coders.net>",
-    "Kev          Kevin Mitchell           <klmitch@mit.edu>",
-    "",
-    "Contributors to this release:",
-    "Kev, Isomer, Gte, Ghostwolf, Bleep",
-    "Debugging and support:",
-    "SeKs, Maniac-, HeKTik, OmniDynmc, Liandrin, Dianora",
-    "Special thanks to Angel and Buff for believing in us and putting"
-    "up with frantic late night phone calls"
-    "",
-    "Thanks goes to all other people who contributed to any version.",
-    "A full listing of all coders can be found in doc/Authors in the",
-    "source.",
-    0,
-};
index 3243327c86bb4383c1357590aa73721e4fa32911..92549d5706a5a0f94cc2ad7622776681d085104f 100644 (file)
@@ -25,7 +25,10 @@ else \
 
 svn_revision=`svn info | grep Revision | grep -o -E '[0-9]+'`
 if test "x$svn_revision" = "x" ; then
-  svn_revision="0"
+  svn_revision=`git log -n 1 --pretty="format:git-%h"`
+  if test "x$svn_revision" = "x" ; then
+    svn_revision="0"
+  fi
 fi