# HG changeset patch # User Maxim Dounin # Date 1363965247 0 # Node ID 96ee76fda991a047bbf0fbf31531aea6ed9396a9 # Parent b78cf2414fdaf9645ff2e697147f45b610e43904 Misc: switch to single export operation in "zip" target. While exporting parts of the tree might be better in some cases, it is awfully slow overseas, and also requires unlocking ssh key multiple times. Exporting the whole repo and removing directories not needed for zip is faster here. It is also a required step before we can switch to Mercurial. diff --git a/misc/GNUmakefile b/misc/GNUmakefile --- a/misc/GNUmakefile +++ b/misc/GNUmakefile @@ -124,22 +124,24 @@ zip: rm -rf $(TEMP) rm -f $(NGINX).zip - mkdir -p $(TEMP)/$(NGINX)/docs + svn export -rHEAD . $(TEMP)/$(NGINX) + + mkdir -p $(TEMP)/$(NGINX)/docs.new mkdir -p $(TEMP)/$(NGINX)/logs mkdir -p $(TEMP)/$(NGINX)/temp - svn export -rHEAD conf $(TEMP)/$(NGINX)/conf/ sed -i '' -e "s/$$/`printf '\r'`/" $(TEMP)/$(NGINX)/conf/* - svn export -rHEAD contrib $(TEMP)/$(NGINX)/contrib/ - svn export -rHEAD docs/html $(TEMP)/$(NGINX)/html/ + mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX)/docs.new + mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX)/docs.new + mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX) - $(MAKE) -f docs/GNUmakefile changes + rm -r $(TEMP)/$(NGINX)/docs + mv $(TEMP)/$(NGINX)/docs.new $(TEMP)/$(NGINX)/docs cp -p $(OBJS)/nginx.exe $(TEMP)/$(NGINX) - cp -p docs/text/LICENSE $(TEMP)/$(NGINX)/docs/ - cp -p docs/text/README $(TEMP)/$(NGINX)/docs/ + $(MAKE) -f docs/GNUmakefile changes mv $(TEMP)/$(NGINX)/CHANGES* $(TEMP)/$(NGINX)/docs/ cp -p $(OBJS)/lib/$(OPENSSL)/LICENSE \ @@ -155,6 +157,10 @@ zip: touch -r $(OBJS)/lib/$(ZLIB)/README \ $(TEMP)/$(NGINX)/docs/zlib.LICENSE + rm -r $(TEMP)/$(NGINX)/auto + rm -r $(TEMP)/$(NGINX)/misc + rm -r $(TEMP)/$(NGINX)/src + cd $(TEMP) && zip -r ../$(NGINX).zip $(NGINX)