Skip to content

Commit

Permalink
Misc: support for Mercurial repositories.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdounin committed Mar 22, 2013
1 parent 3139016 commit 66f9c0f
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions misc/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ ZLIB = zlib-1.2.7
PCRE = pcre-8.32


release:
rm -rf $(TEMP)

svn export -rHEAD . $(TEMP)/$(NGINX)
release: export

mv $(TEMP)/$(NGINX)/auto/configure $(TEMP)/$(NGINX)

Expand All @@ -39,7 +36,32 @@ release:
tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX)


export:
rm -rf $(TEMP)

if [ -d .svn ]; then \
svn export -rHEAD . $(TEMP)/$(NGINX); \
else \
hg archive -X '.hg*' $(TEMP)/$(NGINX); \
fi


RELEASE:
if [ -d .svn ]; then \
$(MAKE) -f misc/GNUmakefile RELEASE.svn; \
else \
$(MAKE) -f misc/GNUmakefile RELEASE.hg; \
fi

$(MAKE) -f misc/GNUmakefile release


RELEASE.hg:
hg ci -m nginx-$(VER)-RELEASE
hg tag -m "release-$(VER) tag" release-$(VER)


RELEASE.svn:
test -d $(TEMP) || mkdir -p $(TEMP)

echo "nginx-$(VER)-RELEASE" > $(TEMP)/message
Expand All @@ -51,8 +73,6 @@ RELEASE:

svn up

$(MAKE) -f misc/GNUmakefile release


win32:
./auto/configure \
Expand Down Expand Up @@ -92,11 +112,9 @@ win32:
--with-mail_ssl_module \
--with-ipv6

zip:
rm -rf $(TEMP)
rm -f $(NGINX).zip

svn export -rHEAD . $(TEMP)/$(NGINX)
zip: export
rm -f $(NGINX).zip

mkdir -p $(TEMP)/$(NGINX)/docs.new
mkdir -p $(TEMP)/$(NGINX)/logs
Expand Down

0 comments on commit 66f9c0f

Please sign in to comment.