chmod[$target], version bump

Allows setting the permissions of installed files. Defaults to 755 if
unset.
master
Luka Vandervelden 2019-10-24 00:45:47 +02:00
parent 086461d2cc
commit 7d15fbb3d3
3 changed files with 3 additions and 2 deletions

View File

@ -205,6 +205,7 @@ done
function main {
typeset -a prefixes directories
typeset -A ldflags cflags sources type depends install auto filename nodist
typeset -A chmod
typeset -a tests
prefixes=(

View File

@ -29,7 +29,7 @@ function binary.install {
write "${target}.install: ${target}"
write "\t@echo '$(IN "${install}/${basename}")'"
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
}

View File

@ -1,6 +1,6 @@
package=build_zsh
version=0.3.1
version=0.4.0
targets=(build.zsh)
type[build.zsh]=script