From: Thierry Parmentelat Date: Mon, 16 Apr 2007 13:59:29 +0000 (+0000) Subject: create myplc-release with build date, hostname, location and detailed version, for... X-Git-Tag: 4.2-rc2~623 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=696aae5ef0ce95013b84aaad68b5a43aee27e35c;p=build.git create myplc-release with build date, hostname, location and detailed version, for embedding into myplc --- diff --git a/onelab.mk b/onelab.mk index 0ec43787..042fb3c0 100644 --- a/onelab.mk +++ b/onelab.mk @@ -4,7 +4,7 @@ # Mark Huang # 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 #