From: Alex Dehnert Date: Sun, 18 Nov 2012 23:37:28 +0000 (-0500) Subject: Install scripts read-only X-Git-Url: https://www.dehnerts.com/gitweb/?p=user%2Falex%2Fsoftware%2Fmy-snippets.git;a=commitdiff_plain;h=dd2780fc2be088d6b7ac4a84852d3f7a9b671bee Install scripts read-only 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. --- diff --git a/Makefile b/Makefile index 159ff72..fbe3e67 100644 --- 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/* :