tried to reorder the program structure and build process
[NeonServV5.git] / version.sh
diff --git a/version.sh b/version.sh
deleted file mode 100644 (file)
index caaff7e..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#! /bin/sh
-echo "Extracting version.c ..."
-
-if test -r version.c
-then
-   compilation=`sed -n 's/^const char \*compilation = \"\(.*\)\";/\1/p' < version.c`
-   if test ! "$compilation" ; then compilation=0; fi
-else
-   compilation=0
-fi
-
-compilation=`expr $compilation + 1`
-
-creation=`date | \
-awk '{if (NF == 6) \
-        { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
-else \
-        { print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
-
-codelines=`find . -type f -regex '\./.*\.h' -or -regex '\./.*\.c' |xargs cat|wc -l`
-
-svn_revision=`svn info | grep Revision | grep -o -E '[0-9]+'`
-if test "x$svn_revision" = "x" ; then
-  svn_revision=`git log -n 1 --pretty="format:%h"`
-  if test "x$svn_revision" = "x" ; then
-    svn_revision="0"
-  else
-    git_commitcount=`git rev-list --all --no-merges | wc -l | sed "s/[ \t]//g"`
-    svn_revision="git-$git_commitcount-$svn_revision"
-  fi
-else
-  svn_revision="svn-$svn_revision"
-fi
-
-
-/bin/cat >version.c <<!SUB!THIS!
-//Auto generated file!
-
-#include "version.h"
-
-const char *compilation = "$compilation";
-const char *creation = "$creation";
-const char *revision = "$svn_revision";
-const char *codelines = "$codelines";
-
-!SUB!THIS!
-