From b449ce07a3bd6b05ecebc184cbc1f7c4e6035060 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Wed, 6 Apr 2016 12:05:18 +0200 Subject: [PATCH] Possible brokeness fixed in scripts and moon. --- build/moon.zsh | 4 ++-- build/script.zsh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/moon.zsh b/build/moon.zsh index eccc200..2bb7e4d 100644 --- a/build/moon.zsh +++ b/build/moon.zsh @@ -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}")'" diff --git a/build/script.zsh b/build/script.zsh index 52da3ee..f2daa47 100644 --- a/build/script.zsh +++ b/build/script.zsh @@ -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 '"