X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_free?a=blobdiff_plain;f=build%2Fredo_scripts%2Fredo-ifchange;h=7023a045f7bd4f788ba6c861a2193f2bd471f026;hb=16e4bb1a5d014c4f5761f87cf2bc8017ac7a449a;hp=5f220a8002ac1b46206046a1fc3de2c30ccff5fe;hpb=6cae62aad97d9220253cba2a9c0881f714a63d1c;p=plomrogue diff --git a/build/redo_scripts/redo-ifchange b/build/redo_scripts/redo-ifchange index 5f220a8..7023a04 100755 --- a/build/redo_scripts/redo-ifchange +++ b/build/redo_scripts/redo-ifchange @@ -128,8 +128,8 @@ _dependencies_uptodate() { _echo_debug_message "$target dependency check:" # If any dependency does not exist, the target is out of date. LANG=C stat -c%Y $(LANG=C cut -f1 "$REDO_DIR/$target".dependencies) > \ - "$REDO_DIR/".dependencies.ctimes 2>&- || return 1 - exec 3< "$REDO_DIR/".dependencies.ctimes + "$REDO_DIR/$target".dependencies.ctimes 2>&- || return 1 + exec 3< "$REDO_DIR/$target".dependencies.ctimes exec 4< "$REDO_DIR/$target".dependencies while read ctime_actual <&3 && read dependency ctime_stored md5sum_stored <&4; do # If a .always file exists, the dependency is out of date. @@ -208,7 +208,7 @@ _do() { fi printf '%sredo %s%s%s%s%s\n' \ "$green" "$REDO_DEPTH" "$bold" "$target_relpath" "$plain" >&2 - ( _run_dofile "$target" "$base" "$tmp.tmp" ) + ( _run_dofile "$target" "${base##*/}" "$tmp.tmp" ) rv="$?" # Add non existing .do file to non-existence dependencies so # target is built when .do file in question is created.