Skip to content

Commit

Permalink
Support alpha tag and build release versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
noahcampbell committed Nov 20, 2010
1 parent 699b728 commit ed1c8ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions packaging/Makefile
@@ -1,8 +1,14 @@
SHELL=/bin/bash

BUILD_NUMBER?=snapshot.$(shell date "+%Y%m%d%H%M")
TAG?=snapshot
ALPHATAG?=$(shell date "+%Y%m%d%H%M")$(TAG)
RPMBUILD_DEFINES = --define "_topdir ${PWD}/dist"
ifdef BUILD_NUMBER
RPMBUILD_DEFINES+= --define "_buildnumber $(BUILD_NUMBER)"
endif
ifndef GA_RELEASE
RPMBUILD_DEFINES+= --define "_alphatag $(ALPHATAG)"
endif

.PHONY: rundeck.rpm

Expand All @@ -18,7 +24,7 @@ rpm:
@cp -R ../core/target/tools/lib/*.jar target/var/lib/rundeck/cli
@find ../core/target/bin ! -regex ".*.bat$$" -and -type f | sed -e /rd-check/d -e /rd-setup/d | xargs -I Z cp Z target/usr/bin
@unzip -oq ../rundeckapp/target/rundeck-1.0.0.war -d target/var/lib/rundeck/exp/webapp/
ln -s /var/lib/rundeck/exp/webapp/WEB-INF/classes/log4j.properties; mv log4j.properties target/var/lib/rundeck/exp/webapp/WEB-INF/classes
@ln -s /var/lib/rundeck/exp/webapp/WEB-INF/classes/log4j.properties; mv log4j.properties target/var/lib/rundeck/exp/webapp/WEB-INF/classes
rpmbuild -bb --target=noarch-linux $(RPMBUILD_DEFINES) --buildroot="${PWD}/target" rundeck.spec

clean:
Expand Down
2 changes: 1 addition & 1 deletion packaging/rundeck.spec
@@ -1,6 +1,6 @@
name: rundeck
version: 1.0
release: 0%{?_buildnumber:.%{_buildnumber}}
release: 0%{?_buildnumber:.%{_buildnumber}}%{?_alphatag:.%{_alphatag}}
license: APL
summary: It Slices, it Dices, it Takes Out Your Garbage
group: System
Expand Down

0 comments on commit ed1c8ec

Please sign in to comment.