diff options
author | Fabian Affolter <fabian@bernewireless.net> | 2010-12-05 22:46:05 +0100 |
---|---|---|
committer | Fabian Affolter <fabian@bernewireless.net> | 2010-12-05 22:46:05 +0100 |
commit | 1c54f4d5c8c324ce6869b6d98f60e78f9b01bbb0 (patch) | |
tree | 261cf19cc8072ce751db1fcac0d0d157972a42d8 /redhat/Makefile | |
parent | 94e4f622b4dee6b33983a17313c0ef5a71c93f2e (diff) | |
parent | 0cff753190c235a9ce65a920730d715a5e4a8ed4 (diff) | |
download | bcfg2-1c54f4d5c8c324ce6869b6d98f60e78f9b01bbb0.tar.gz bcfg2-1c54f4d5c8c324ce6869b6d98f60e78f9b01bbb0.tar.bz2 bcfg2-1c54f4d5c8c324ce6869b6d98f60e78f9b01bbb0.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'redhat/Makefile')
-rw-r--r-- | redhat/Makefile | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/redhat/Makefile b/redhat/Makefile index bf7c69591..7533b98da 100644 --- a/redhat/Makefile +++ b/redhat/Makefile @@ -11,15 +11,15 @@ .PHONY: cvs-export git-export svn-export test-export .PHONY: cvs-clean git-clean svn-clean test-clean -SCM_TYPE := svn +SCM_TYPE := git SCM_PATH := ../ #CVSROOT := $(shell cat 2>/dev/null src/CVS/Root) -SVN_PATH := $(shell svn info ${SCM_PATH} 2>/dev/null | awk '/^URL:/{print $$2}') -SVN_REV := $(shell svn info ${SVN_PATH} 2>/dev/null | awk '/^Last Changed Rev:/{print $$4}') +#SVN_PATH := $(shell svn info ${SCM_PATH} 2>/dev/null | awk '/^URL:/{print $$2}') +#SVN_REV := $(shell svn info ${SVN_PATH} 2>/dev/null | awk '/^Last Changed Rev:/{print $$4}') PACKAGE := $(shell cat PACKAGE) VERSION := $(shell cat VERSION) -RELEASE := $(shell cat RELEASE)r${SVN_REV} +RELEASE := $(shell cat RELEASE) BASE_VER := ${VERSION}-${RELEASE} CURRENT_PACKAGE := $(PACKAGE)-$(BASE_VER) TARBALL := $(CURRENT_PACKAGE).tar @@ -80,8 +80,8 @@ buildtargz: buildtarball # This target copies files that are not in svn into the build tree prepbuildtarball: $(SCM_TYPE)-export - @cp ${PACKAGE}.spec ./build/${CURRENT_PACKAGE}/redhat && \ - cp -R scripts ./build/${CURRENT_PACKAGE}/redhat + @cp ${PACKAGE}.spec ./build/${CURRENT_PACKAGE}/redhat/ && \ + cp -R scripts ./build/${CURRENT_PACKAGE}/redhat/ specfile: $(PACKAGE).spec @@ -113,11 +113,8 @@ test-export: builddir --file - git-export: builddir prepclean - @git-tar-tree HEAD $(PACKAGE)-$(VERSION) \ - | tar \ - --extract \ - --directory ./build/ \ - --file - + @cd ../ && git archive --format=tar --prefix=$(CURRENT_PACKAGE)/ HEAD \ + | (cd redhat/build && tar xf -) git-clean: @: |