History

configure: win32: error only once about 'ln failed'

Don't try ln again if it failed, it won't have better luck next time.

Avi Halachmi (:avih) committed 1 year ago

Commit 126b1ff1 parent c45559e1 file · +4 −1Browse files

Unified · Split

configure+4−1
@@ -710,6 +710,7 @@ rm -f $TMPN* $CONFTEST · 709 unmodified lines
710# ---------------------------------------------------------------------------710# ---------------------------------------------------------------------------
711# build tree in object directory if source path is different from current one711# build tree in object directory if source path is different from current one
712 712
713use_cp=
713fn_makelink()714fn_makelink()
714{715{
715 tgt=$1/$2716 tgt=$1/$2
@@ -726,7 +727,9 @@ fn_makelink() · 10 unmodified lines
726 ;;727 ;;
727 esac728 esac
728 729
729 ln -sfn "$tgt" $2 || ( echo "ln failed. Using cp instead."; cp -f "$1/$2" $2 )730 test -n "$use_cp" || ln -sfn "$tgt" $2 ||
731 { use_cp=yes; echo "ln failed. Using cp instead."; }
732 test -z "$use_cp" || cp -f "$1/$2" $2
730}733}
731 734
732if test "$source_path_used" = "yes" ; then735if test "$source_path_used" = "yes" ; then

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t