chmod[$target], version bump
Allows setting the permissions of installed files. Defaults to 755 if unset.
This commit is contained in:
parent
086461d2cc
commit
7d15fbb3d3
@ -205,6 +205,7 @@ done
|
|||||||
function main {
|
function main {
|
||||||
typeset -a prefixes directories
|
typeset -a prefixes directories
|
||||||
typeset -A ldflags cflags sources type depends install auto filename nodist
|
typeset -A ldflags cflags sources type depends install auto filename nodist
|
||||||
|
typeset -A chmod
|
||||||
typeset -a tests
|
typeset -a tests
|
||||||
|
|
||||||
prefixes=(
|
prefixes=(
|
||||||
|
@ -29,7 +29,7 @@ function binary.install {
|
|||||||
write "${target}.install: ${target}"
|
write "${target}.install: ${target}"
|
||||||
write "\t@echo '$(IN "${install}/${basename}")'"
|
write "\t@echo '$(IN "${install}/${basename}")'"
|
||||||
write "\t${Q}mkdir -p '\$(DESTDIR)${install}'"
|
write "\t${Q}mkdir -p '\$(DESTDIR)${install}'"
|
||||||
write "\t${Q}install -m0755 ${target} \$(DESTDIR)${install}/${basename}"
|
write "\t${Q}install -m${chmod[$target]:-0755} ${target} \$(DESTDIR)${install}/${basename}"
|
||||||
write
|
write
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
package=build_zsh
|
package=build_zsh
|
||||||
version=0.3.1
|
version=0.4.0
|
||||||
|
|
||||||
targets=(build.zsh)
|
targets=(build.zsh)
|
||||||
type[build.zsh]=script
|
type[build.zsh]=script
|
||||||
|
Loading…
Reference in New Issue
Block a user