/etc/myplc-release packaged for myplc-native (needed for GetPlcRelease)
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 21 Apr 2008 16:40:03 +0000 (16:40 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 21 Apr 2008 16:40:03 +0000 (16:40 +0000)
build-native.sh
db-config
myplc-native.spec
support-scripts/gen_aliases.py
support-scripts/renew_reminder.py

index f9924dd..5d4522d 100755 (executable)
@@ -44,6 +44,17 @@ echo "* myplc-native: Installing initscripts"
 find plc.d | cpio -p -d -u ${tmpdir}/etc/
 install -D -m 755 guest.init ${tmpdir}/etc/init.d/plc
 
+# fetch the release stamp from the build if any
+# I could not come up with any more sensitive scheme 
+if [ -f ../../../myplc-release ] ; then
+  cp ../../../myplc-release myplc-release
+else
+  echo "Cannot find release information." > myplc-release
+  date >> myplc-release
+  echo "$HeadURL$" >> myplc-release
+fi
+# install it in /etc/myplc-release 
+install -m 444 myplc-release ${tmpdir}/etc/myplc-release
 
 # Install configuration file
 echo "* myplc: Installing configuration file"
index 5083b58..46ade07 100755 (executable)
--- a/db-config
+++ b/db-config
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: db-config 7454 2007-12-11 18:55:00Z faiyaza $
+# $Id$
 # $HeadURL$
 
 from plc_config import PLCConfiguration
index 9f985e8..c5faaf6 100644 (file)
@@ -183,6 +183,7 @@ fi
 %files
 %defattr(-,root,root,-)
 # Host startup script and configuration file
+/etc/myplc-release
 /etc/init.d/plc
 /etc/plc.d
 /etc/planetlab
index 609b1b4..48a70fe 100755 (executable)
@@ -25,7 +25,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2005 The Trustees of Princeton University
 #
-# $Id: gen_aliases.py 7614 2008-01-03 16:39:57Z faiyaza $
+# $Id$
 #
 
 import os, sys
index 8f8067a..499a7d3 100755 (executable)
@@ -5,7 +5,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2005 The Trustees of Princeton University
 #
-# $Id: renew_reminder.py 7225 2007-11-29 18:21:31Z faiyaza $
+# $Id$
 #
 
 import sys