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
S="${sources[$target]}"
else
elif [[ -e "${target%.lua}.moon" ]]; then
S="${target%.lua}.moon"
fi
if [[ -e "${S%% *}" ]]; then
if [[ -n "${S}" ]]; then
write " ${S}"
write "\t@echo '$(MOON "${target}")'"
# write "\t@echo '$(SED "${basename}")'"

View File

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