Possible brokeness fixed in scripts and moon.

master
Luka Vandervelden 2016-04-06 12:05:18 +02:00
parent 711e92c22d
commit b449ce07a3
2 changed files with 4 additions and 4 deletions

View File

@ -10,11 +10,11 @@ function moon.build {
if [[ -n "${sources[$target]}" ]]; then if [[ -n "${sources[$target]}" ]]; then
S="${sources[$target]}" S="${sources[$target]}"
else elif [[ -e "${target%.lua}.moon" ]]; then
S="${target%.lua}.moon" S="${target%.lua}.moon"
fi fi
if [[ -e "${S%% *}" ]]; then if [[ -n "${S}" ]]; then
write " ${S}" write " ${S}"
write "\t@echo '$(MOON "${target}")'" write "\t@echo '$(MOON "${target}")'"
# write "\t@echo '$(SED "${basename}")'" # write "\t@echo '$(SED "${basename}")'"

View File

@ -4,13 +4,13 @@ function script.build {
if [[ -n "${sources[$target]}" ]]; then if [[ -n "${sources[$target]}" ]]; then
S="${sources[$target]}" S="${sources[$target]}"
else elif [[ -e "${target}.in" ]]; then
S="${target}.in" S="${target}.in"
fi fi
write -n "${target}:" write -n "${target}:"
if [[ -e "${S%% *}" ]]; then if [[ -n "${S}" ]]; then
write " $S" write " $S"
write "\t@echo '$(SED "${target}")'" write "\t@echo '$(SED "${target}")'"
write -n "\t${Q}sed -e '" write -n "\t${Q}sed -e '"