From: Mike Taylor Date: Wed, 2 Apr 2014 06:58:46 +0000 (+0100) Subject: chmod 444 for read-only generated files instead of -w. X-Git-Tag: 1.0.0~1094^2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=2bb724366c5245254fd38c931cca9260cd236ebd;p=mkws-moved-to-github.git chmod 444 for read-only generated files instead of -w. That's because chmod -w on the file in a directory with g+s fails with: $ chmod -w jquery.json-2.4.js chmod: jquery.json-2.4.js: new permissions are r--rw-r--, not r--r--r-- and this impedes the Jenkins testing. --- diff --git a/src/Makefile b/src/Makefile index 0707725..32a5983 100644 --- a/src/Makefile +++ b/src/Makefile @@ -30,7 +30,7 @@ uninstall: rm -f $(INSTALLED) ../tools/htdocs/%: % - rm -f $@ && cp -p $? $@ && chmod -w $@ + rm -f $@ && cp -p $? $@ && chmod 444 $@ all: mkws.min.js mkws-complete.min.js @@ -89,7 +89,7 @@ release: mkws.js mkws-complete.js mkws.min.js mkws-complete.min.js mkws.js: $(COMPONENTS) Makefile rm -f $@ cat $(COMPONENTS) > $@ - chmod -w $@ + chmod 444 $@ distclean: clean rm -f *.orig *.bak *.rej