Removed proper ops from planetflow slice.
[myplc.git] / build-native.sh
index 4c73823..6594cba 100755 (executable)
@@ -44,6 +44,16 @@ 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
+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"
@@ -55,8 +65,8 @@ install -D -m 444 plc_config.dtd ${tmpdir}/etc/planetlab/plc_config.dtd
 # updates or optional packages should be placed in this directory.
 nodefamily=${pldistro}-${pl_DISTRO_ARCH}
 install -D -m 644 $pl_DISTRO_YUMGROUPS \
-    data/var/www/html/install-rpms/$nodefamily/yumgroups.xml
+    ${tmpdir}/var/www/html/install-rpms/$nodefamily/yumgroups.xml
 # temporary - so that node update still work until yum.conf.php gets fixed
-( cd data/var/www/html/install-rpms ; ln -s $nodefamily planetlab)
+( cd ${tmpdir}/var/www/html/install-rpms ; ln -s $nodefamily planetlab)
 
 exit 0