[vhffs-dev] [630] Readded revision information on panel index (happy misric ?). |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 630
Author: beuss
Date: 2007-05-25 15:54:22 +0000 (Fri, 25 May 2007)
Log Message:
-----------
Readded revision information on panel index (happy misric ?).
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Constants.pm
trunk/vhffs-api/src/Vhffs/Makefile.am
Modified: trunk/vhffs-api/src/Vhffs/Constants.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Constants.pm 2007-05-25 15:16:41 UTC (rev 629)
+++ trunk/vhffs-api/src/Vhffs/Constants.pm 2007-05-25 15:54:22 UTC (rev 630)
@@ -5,7 +5,7 @@
use constant
{
- VHFFS_VERSION => '4.1-alpha (Revision: 547)',
+ VHFFS_VERSION => '4.1-alpha (Revision: %VHFFS_REVISION%)',
VHFFS_RELEASE_NAME => "hippocampus",
WAITING_FOR_VALIDATION => 1,
Modified: trunk/vhffs-api/src/Vhffs/Makefile.am
===================================================================
--- trunk/vhffs-api/src/Vhffs/Makefile.am 2007-05-25 15:16:41 UTC (rev 629)
+++ trunk/vhffs-api/src/Vhffs/Makefile.am 2007-05-25 15:54:22 UTC (rev 630)
@@ -1,4 +1,7 @@
apidir = @APIDIR@
+
+revision=`svnversion . | perl -e '$$_ = <STDIN>; /^(?:.*?:)?(\d+)\w*\$$/; print \$$1;'`
+
nobase_api_DATA = \
Acl.pm \
Conf.pm \
@@ -63,9 +66,12 @@
# Define the substitution we need to point perl script at correct location
do_sed = $(SED) --in-place \
-e 's,%PERL%,$(PERL),g' \
- -e 's,'%VHFFS_LIB_DIR%',$(VHFFS_LIBDIR),g'
+ -e 's,'%VHFFS_LIB_DIR%',$(VHFFS_LIBDIR),g' \
+ -e 's,'%VHFFS_REVISION%",$(revision),g"
+
install-data-hook:
for f in $(nobase_api_DATA) ; do \
$(do_sed) $(DESTDIR)$(apidir)/$$f; \
done
+