From ef1aa2c9f3c231f067e9b90d82f85dc7ee00a81f Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 21 Apr 2008 16:40:03 +0000 Subject: [PATCH] /etc/myplc-release packaged for myplc-native (needed for GetPlcRelease) --- build-native.sh | 11 +++++++++++ db-config | 2 +- myplc-native.spec | 1 + support-scripts/gen_aliases.py | 2 +- support-scripts/renew_reminder.py | 2 +- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/build-native.sh b/build-native.sh index f9924dd..5d4522d 100755 --- a/build-native.sh +++ b/build-native.sh @@ -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" diff --git a/db-config b/db-config index 5083b58..46ade07 100755 --- a/db-config +++ b/db-config @@ -7,7 +7,7 @@ # Mark Huang # 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 diff --git a/myplc-native.spec b/myplc-native.spec index 9f985e8..c5faaf6 100644 --- a/myplc-native.spec +++ b/myplc-native.spec @@ -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 diff --git a/support-scripts/gen_aliases.py b/support-scripts/gen_aliases.py index 609b1b4..48a70fe 100755 --- a/support-scripts/gen_aliases.py +++ b/support-scripts/gen_aliases.py @@ -25,7 +25,7 @@ # Mark Huang # Copyright (C) 2005 The Trustees of Princeton University # -# $Id: gen_aliases.py 7614 2008-01-03 16:39:57Z faiyaza $ +# $Id$ # import os, sys diff --git a/support-scripts/renew_reminder.py b/support-scripts/renew_reminder.py index 8f8067a..499a7d3 100755 --- a/support-scripts/renew_reminder.py +++ b/support-scripts/renew_reminder.py @@ -5,7 +5,7 @@ # Mark Huang # Copyright (C) 2005 The Trustees of Princeton University # -# $Id: renew_reminder.py 7225 2007-11-29 18:21:31Z faiyaza $ +# $Id$ # import sys -- 2.43.0