diff options
-rwxr-xr-x | sbodl | 6 | ||||
-rwxr-xr-x | sbrun | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -90,7 +90,11 @@ for dl in $DL; do [ "$FORCEDL" = "yes" ] && rm -f "$FILE" - if [ -e "$FILE" ]; then + if [ -f "$FILE" -a ! -L "$FILE" ]; then + # file exists and is a regular file, cache it + mv -b "$FILE" "$CACHEDIR" + ln -s "$CACHEDIR/$FILE" "$FILE" + elif [ -e "$FILE" ]; then # don't do anything : elif [ "$FORCEDL" != "yes" ] && [ -e "$CACHEDIR/$FILE" ]; then @@ -29,6 +29,8 @@ if [ "$(id -u)" != "0" ]; then "$0" "$@" fi +[ -e "$BUILDLOG" ] && mv "$BUILDLOG" "$BUILDLOG".old + # Inherit MAKEFLAGS from env, if present. MAKEFLAGS="${MAKEFLAGS:-$DEFAULT_MAKEFLAGS}" |