Improved substitutions with type[]=script.
This commit is contained in:
parent
7ffb3c8afa
commit
4d49afcd52
@ -14,9 +14,9 @@ function script.build {
|
|||||||
write " $S $(dirdep $target)"
|
write " $S $(dirdep $target)"
|
||||||
write "\t@echo '$(SED "${target}")'"
|
write "\t@echo '$(SED "${target}")'"
|
||||||
write -n "\t${Q}sed -e '"
|
write -n "\t${Q}sed -e '"
|
||||||
write -n "s&@LIBDIR@&\$(LIBDIR)&;"
|
for variable value in ${prefixes[@]} ${variables[@]}; do
|
||||||
write -n "s&@BINDIR@&\$(BINDIR)&;"
|
write -n "s&@${variable}@&\$(${variable})&;"
|
||||||
write -n "s&@SHAREDIR@&\$(SHAREDIR)&;"
|
done
|
||||||
write "' $S > '${target}'"
|
write "' $S > '${target}'"
|
||||||
write "\t${Q}chmod +x '${target}'"
|
write "\t${Q}chmod +x '${target}'"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user