#
####################
+# exported to spec files as plrelease
+PLANETLAB_RELEASE = 4.2
+
#
# Default values
#
echo "%define distroname $(DISTRO)" >> $($(1).specpath)
echo "%define distrorelease $(RELEASE)" >> $($(1).specpath)
echo "%define pldistro $(PLDISTRO)" >> $($(1).specpath)
+ echo "%define plrelease $(PLANETLAB_RELEASE)" >> $($(1).specpath)
$(if $($(1).has-date),echo "%define date $(shell date +%Y.%m.%d)" >> $($(1).specpath),)
$(if $($(1)-SPECVARS), \
$(foreach line,$($(1)-SPECVARS), \
# gather build information for the 'About' page
# when run from crontab, INIT_CWD not properly set (says /root ..)
# so, the nightly build passes NIGHTLY_BASE here
+# also store the nightly_base in .base for any post-processing purposes
myplc-release:
@echo 'Creating myplc-release'
rm -f $@
$(MAKE) --no-print-directory version-svns >> $@
echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx rpm info" >> $@
$(MAKE) --no-print-directory version-rpms >> $@
+ @echo $(NIGHTLY_BASE) > .base
version-build:
@echo -n 'Build bdate: ' ; date '+%Y.%m.%d'
@echo -n 'Build btime: ' ; date '+%H:%M'
@echo -n 'Build bhostname: ' ; hostname
@echo "Build base: $(NIGHTLY_BASE)"
- @echo "Build binit_cwd: $(INIT_CWD)"
@echo -n 'Build btags: ' ; fgrep '$$''Id' $(PLDISTROTAGS)
@echo "Build tarch: $(HOSTARCH)"
@echo "Build tdistro: $(DISTRO)"