~sircmpwn/wersh

18c11952e5f94ceb7382aef62696b45f2e484eec — Drew DeVault 3 years ago d830cf3
Misc bugfixes
1 files changed, 4 insertions(+), 4 deletions(-)

M wersh
M wersh => wersh +4 -4
@@ 48,7 48,7 @@ function escape() {

function wsource() {
    local _file=$(mktemp)
    ${wershawk} < "$1" > "$_file"
    ${_wershawk} < "$1" > "$_file"
    source "$_file"
    rm "$_file"
}


@@ 76,16 76,16 @@ else
        echo "$_outputdir exists and is not a directory"
        exit 1
    fi
    find "$root" -type f -name "*.w" -not -path "*/_*/*" -not -name "_*" | \
    find "$root" -type f -name "*.w" -not -path "*/_*/*" -not -name "_*" -not -path "/.*" | \
    while IFS= read -r _input
    do
        _output=$_outputdir${_input#$root}
        _output=${_output%.sh}
        _output=${_output%.w}
        echo "Generating $_output from $_input"
        mkdir -p $(dirname "$_output")
        $0 -s "$root" "$_outputdir" "$_output" "${_input#$root/}" > "$_output"
    done
    find "$root" -type f -not -name "*.w" -not -path "*/_*/*" -not -name "_*" | \
    find "$root" -type f -not -name "*.w" -not -path "*/_*/*" -not -name "_*" -not -path "*/.*" | \
    while IFS= read -r _input
    do
        _output=$_outputdir${_input#$root}