diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-02-26 10:51:00 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-02-26 18:33:13 +0400 |
commit | 8fe72a7f27adb5d89165c0f4c72b6f358d0602ef (patch) | |
tree | 28fc45b42a44cf7bb6d727a200d5eec0e8e3ff61 /Makefile | |
parent | d4a297ccb054019aa582bab2a0746f762c930159 (diff) |
build: automatically add tag for nightly builds
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -225,6 +225,10 @@ ARCH=x86 endif endif TARNAME=node-$(VERSION) +ifeq ($(NIGHTLY),1) +TAG = nightly-$(shell date "+%Y%m%d") +TARNAME=node-$(VERSION)-$(TAG) +endif TARBALL=$(TARNAME).tar.gz BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH) BINARYTAR=$(BINARYNAME).tar.gz @@ -247,7 +251,7 @@ release-only: echo "" >&2 ; \ exit 1 ; \ fi - @if [ "$(RELEASE)" = "1" ]; then \ + @if [ "$(NIGHTLY)" = "1" -o "$(RELEASE)" = "1" ]; then \ exit 0; \ else \ echo "" >&2 ; \ @@ -262,10 +266,10 @@ pkg: $(PKG) $(PKG): release-only rm -rf $(PKGDIR) rm -rf out/deps out/Release - $(PYTHON) ./configure --prefix=$(PKGDIR)/32/usr/local --without-snapshot --dest-cpu=ia32 + $(PYTHON) ./configure --prefix=$(PKGDIR)/32/usr/local --without-snapshot --dest-cpu=ia32 --tag=$(TAG) $(MAKE) install V=$(V) rm -rf out/deps out/Release - $(PYTHON) ./configure --prefix=$(PKGDIR)/usr/local --without-snapshot --dest-cpu=x64 + $(PYTHON) ./configure --prefix=$(PKGDIR)/usr/local --without-snapshot --dest-cpu=x64 --tag=$(TAG) $(MAKE) install V=$(V) SIGN="$(SIGN)" PKGDIR="$(PKGDIR)" bash tools/osx-codesign.sh lipo $(PKGDIR)/32/usr/local/bin/node \ @@ -297,7 +301,7 @@ tar: $(TARBALL) $(BINARYTAR): release-only rm -rf $(BINARYNAME) rm -rf out/deps out/Release - $(PYTHON) ./configure --prefix=/ --without-snapshot --dest-cpu=$(DESTCPU) $(CONFIG_FLAGS) + $(PYTHON) ./configure --prefix=/ --without-snapshot --dest-cpu=$(DESTCPU) --tag=$(TAG) $(CONFIG_FLAGS) $(MAKE) install DESTDIR=$(BINARYNAME) V=$(V) PORTABLE=1 cp README.md $(BINARYNAME) cp LICENSE $(BINARYNAME) |