Improved substitutions with type[]=script.

master
Luka Vandervelden 2019-06-12 02:40:16 +02:00
parent 7ffb3c8afa
commit 4d49afcd52
1 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ function script.build {
write " $S $(dirdep $target)"
write "\t@echo '$(SED "${target}")'"
write -n "\t${Q}sed -e '"
write -n "s&@LIBDIR@&\$(LIBDIR)&;"
write -n "s&@BINDIR@&\$(BINDIR)&;"
write -n "s&@SHAREDIR@&\$(SHAREDIR)&;"
for variable value in ${prefixes[@]} ${variables[@]}; do
write -n "s&@${variable}@&\$(${variable})&;"
done
write "' $S > '${target}'"
write "\t${Q}chmod +x '${target}'"
fi