]> git.kaiwu.me - nginx.git/commitdiff
Removed the need in Perl to generate ZIP archive of nginx/Windows.
authorRuslan Ermilov <ru@nginx.com>
Thu, 2 Aug 2012 14:58:36 +0000 (14:58 +0000)
committerRuslan Ermilov <ru@nginx.com>
Thu, 2 Aug 2012 14:58:36 +0000 (14:58 +0000)
misc/GNUmakefile

index 22a9abb33f6eeb49ce4bdbb6fbd68997734a4394..37574351ef4377d2b4fa188101a03e5083fdbc0c 100644 (file)
@@ -92,7 +92,7 @@ zip:
        mkdir -p $(TEMP)/$(NGINX)/temp
 
        svn export -rHEAD conf $(TEMP)/$(NGINX)/conf/
-       perl -pi -e 's/$$/\r/' $(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/
@@ -111,7 +111,7 @@ zip:
        cp -p $(OBJS)/lib/$(PCRE)/LICENCE                               \
                $(TEMP)/$(NGINX)/docs/PCRE.LICENCE
 
-       perl -ne 'print if /^ \(C\) 1995-20/ .. /^  jloup\@gzip.org/'   \
+       sed -ne '/^ (C) 1995-20/,/^  jloup@gzip\.org/p'                 \
                $(OBJS)/lib/$(ZLIB)/README                              \
                > $(TEMP)/$(NGINX)/docs/zlib.LICENSE