Install scripts read-only
authorAlex Dehnert <adehnert@mit.edu>
Sun, 18 Nov 2012 23:37:28 +0000 (18:37 -0500)
committerAlex Dehnert <adehnert@mit.edu>
Sun, 18 Nov 2012 23:37:28 +0000 (18:37 -0500)
Switch from using cp to using install to install scripts, and install them 555
to reduce the risk of accidentally changing the installed scripts and not this
repo.

Makefile

index 159ff728a9ddb30c3c1154828009d385a41f3a04..fbe3e67c6e49ec919ae5da1802365b083f067998 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ arches=\
 all : install
 
 $(common)/% : %
-       cp $< $@
+       install -c -m 555 $< $@
 
 $(foreach script,$(scripts),$(foreach arch,$(arches),$(archdir)/$(arch)/bin/$(script))) : 
 #$(archdir)/*/bin/* :