]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
doxify version.h and git-version.h.
authorAndre Noll <maan@systemlinux.org>
Sun, 22 May 2011 13:22:14 +0000 (15:22 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 22 May 2011 13:22:14 +0000 (15:22 +0200)
GIT-VERSION-GEN
version.h

index 15c387942fad6748244a530728bf58edc69c83ff..32802232244a6a79258f2640e7e0f7e3ddd950a2 100755 (executable)
@@ -31,8 +31,10 @@ echo "$VN"
 
 [[ -z "$GVF" ]] && exit 0
 if [[ -r "$GVF" ]]; then
-       VC=$(sed -e 's/^#define GIT_VERSION "//; s/"$//' < "$GVF")
+       pattern='^#define GIT_VERSION "'
+       VC=$(grep "$pattern" < "$GVF" | sed -e "s/$pattern//; s/\"$//")
        [[ "$VN" == "$VC" ]] && exit 0
 fi
 echo >&2 "new git version: $VN"
-echo "#define GIT_VERSION \"$VN\"" >$GVF
+echo "/** \\file ${GVF##*/} Auto-generated version file. Do not edit. */" >$GVF
+echo "#define GIT_VERSION \"$VN\"" >> $GVF
index 3b839669bd610360b904f473e4e4e6156989bbd6..a9547797d9068ca40854329703d6a36ad537cb03 100644 (file)
--- a/version.h
+++ b/version.h
@@ -1,11 +1,13 @@
+/** \file version.h Macros for printing the version string. */
+
 #include "git-version.h"
-/** Version text used by various commands if -V switch was given. */
+
+/** Version text printed by all executables if -V was given. */
 #define VERSION_TEXT(prefix) "para_" prefix " " PACKAGE_VERSION \
        " (" GIT_VERSION ": " CODENAME ")" "\n" \
        "Copyright (C) 2011 Andre Noll\n" \
        "This is free software with ABSOLUTELY NO WARRANTY." \
        " See COPYING for details.\n" \
-       "Written by Andre Noll.\n" \
        "Report bugs to <maan@systemlinux.org>.\n"
 
 /** Print out \p VERSION_TEXT and exit if version flag was given. */