Possible brokeness fixed in scripts and moon.
parent
711e92c22d
commit
b449ce07a3
|
@ -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}")'"
|
||||||
|
|
|
@ -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 '"
|
||||||
|
|
Loading…
Reference in New Issue