summaryrefslogtreecommitdiffstats
path: root/encap/src
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-08-26 22:48:47 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-08-26 22:48:47 +0000
commitfd57f6e2bba71c71aeb614aa002499004253c612 (patch)
tree147ef5682076ceaebeea232b0cfcbbb524bf5ec7 /encap/src
parent1f3c75b4c4424ef178e654f992763bdc33fe729c (diff)
downloadbcfg2-fd57f6e2bba71c71aeb614aa002499004253c612.tar.gz
bcfg2-fd57f6e2bba71c71aeb614aa002499004253c612.tar.bz2
bcfg2-fd57f6e2bba71c71aeb614aa002499004253c612.zip
EncapPackages: Added bcfg2 bump functionality to
encap/src/encap-profiles/Makefile git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2122 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/src')
-rw-r--r--encap/src/encap-profiles/Makefile29
1 files changed, 28 insertions, 1 deletions
diff --git a/encap/src/encap-profiles/Makefile b/encap/src/encap-profiles/Makefile
index c79c729d6..f2c4d04b9 100644
--- a/encap/src/encap-profiles/Makefile
+++ b/encap/src/encap-profiles/Makefile
@@ -1,6 +1,6 @@
# $Id$
-.PHONY : test log all install clean distclean uninstall encaps rename bcfg2only
+.PHONY : test log all install clean distclean uninstall encaps rename bcfg2only bcfg2bump
.SUFFIXES :
.SUFFIXES : .ep .sh .installed .packaged .d
@@ -160,5 +160,32 @@ uninstall : distclean
bcfg2only :
$(MAKE) -t; sleep 2; touch $(srcdir)/$(BCFG2).ep; $(MAKE)
+
+bcfg2bump :
+ @if [ "$(NEWVERSION)x" != "x" ]; then NEWVERSION="$(NEWVERSION)"; fi && \
+ if [ "$(FORCE)x" != "x" ]; then FORCE="$(FORCE)"; fi && \
+ if [ "$${NEWVERSION}x" != "x" ]; then \
+ if [ "$${FORCE}x" != "yesmamx" ]; then \
+ printf "About to 'svn mv %s %s'\n" "$(BCFG2).ep" "$$NEWVERSION"; \
+ printf "\tand edit the later as appropriate.\n"; \
+ printf "Press 'return' to continue, or 'ctrl-c' to exit. "; \
+ read THROWAWAY; \
+ fi; \
+ svn mv $(BCFG2).ep $${NEWVERSION}; \
+ NVBASE="`printf "%s\n" "$${NEWVERSION}" | sed 's:\.ep::g'`"; \
+ sed s:$(BCFG2):$$NVBASE:g $${NEWVERSION} > $${NEWVERSION}.tmp; \
+ mv $${NEWVERSION}.tmp $${NEWVERSION}; \
+ printf "Changes to %s are:\n" "$${NEWVERSION}"; \
+ svn diff $${NEWVERSION}; \
+ if [ "$${FORCE}x" != "yesmamx" ]; then \
+ printf "'svn commit %s -m \"EncapPackages: Bumped bcfg2 .ep version to %s\"'? \n" "$${NEWVERSION}" "$${NEWVERSION}"; \
+ printf "Press 'return' to commit, or 'ctrl-c' to exit. "; \
+ read THROWAWAY; \
+ fi; \
+ svn commit $${NEWVERSION} -m "EncapPackages: Bumped bcfg2 .ep version to $${NVBASE}"; \
+ else \
+ printf "Set the NEWVERSION (and optionally FORCE) environment variables\n"; \
+ printf "Example: 'NEWVERSION=bcfg2-0.8.3.ep $(MAKE) bcfg2bump'\n"; \
+ fi
include $(addsuffix .d,$(sources))