create myplc-release with build date, hostname, location and detailed version, for...
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 16 Apr 2007 13:59:29 +0000 (13:59 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 16 Apr 2007 13:59:29 +0000 (13:59 +0000)
onelab.mk

index 0ec4378..042fb3c 100644 (file)
--- a/onelab.mk
+++ b/onelab.mk
@@ -4,7 +4,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2003-2006 The Trustees of Princeton University
 #
-# $Id: onelab.mk,v 1.20 2007/04/16 12:55:26 thierry Exp $
+# $Id: onelab.mk,v 1.21 2007/04/16 13:32:51 thierry Exp $
 #
 
 #
@@ -372,6 +372,18 @@ myplc: $(filter-out myplc,$(ALL))
 # ...and the yum manifest
 myplc: RPMS/yumgroups.xml
 
+# we also ship various information on the build in /etc/myplc-release
+myplc: SOURCES/myplc/myplc/myplc-release
+
+SOURCES/myplc/myplc/myplc-release: 
+       @echo 'Creating myplc-release'
+       rm $@
+       touch $@
+       (echo -n 'Build date: ' ; date '+%Y.%m.%d') >> $@
+       (echo -n 'Build hostname: ' ; hostname) >> $@
+       (echo -n 'Build location: ' ; pwd) >> $@
+       cat $(TAGSFILE) >> $@
+
 #
 # MyPLC development environment
 #