diff options
Diffstat (limited to 'mcon/U/patchlevel.U')
-rw-r--r-- | mcon/U/patchlevel.U | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/mcon/U/patchlevel.U b/mcon/U/patchlevel.U index cbbc704..4c63586 100644 --- a/mcon/U/patchlevel.U +++ b/mcon/U/patchlevel.U @@ -1,11 +1,11 @@ -?RCS: $Id: patchlevel.U 25 2008-05-28 11:19:25Z rmanfredi $ +?RCS: $Id: patchlevel.U 167 2013-05-08 17:58:00Z rmanfredi $ ?RCS: ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi ?RCS: -?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: You may redistribute only under the terms of the Artistic License, ?RCS: as specified in the README file that comes with the distribution. ?RCS: You may reuse parts of this distribution only within the terms of -?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: that same Artistic License; a copy of which may be found at the root ?RCS: of the source tree for dist 4.0. ?RCS: ?RCS: $Log: patchlevel.U,v $ @@ -17,6 +17,7 @@ ?RCS: ?MAKE:patchlevel revision: package baserev test rsrc ?MAKE: -pick add $@ %< +?T:Revision ?S:patchlevel: ?S: The patchlevel level of this package. ?S: The value of patchlevel comes from the patchlevel.h file. @@ -36,10 +37,23 @@ if $test -r $rsrc/patchlevel.h;then else patchlevel=0 fi +?X: +?X: Can handle either one of: +?X: +?X: #define REVISION word +?X: #define REVISION "$Revision: 167 $" +?X: if $test -r $rsrc/revision.h;then revision=`awk \ '/^#[ ]*define[ ][ ]*REVISION/ {print $3}' \ < $rsrc/revision.h` + case "$revision" in + '"$Revision:') + revision=`awk \ + '/^#[ ]*define[ ][ ]*REVISION/ {print $4}' \ + < $rsrc/revision.h` + ;; + esac else revision=0 fi |