Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit fc4b641

Browse files
author
Matthias Koeppe
committed
configure.ac: Remove conveniene symlinks before (re)creating them
1 parent b3f7d34 commit fc4b641

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configure.ac

+2
Original file line numberDiff line numberDiff line change
@@ -507,13 +507,15 @@ AC_CONFIG_COMMANDS(links, [
507507
SYMLINK="${ac_top_build_prefix}prefix"
508508
AS_IF([test -L "$SYMLINK" -o ! -e "$SYMLINK"], [
509509
AC_MSG_NOTICE([creating convenience symlink $SYMLINK -> $SAGE_LOCAL])
510+
rm -f "$SYMLINK"
510511
ln -sf "$SAGE_LOCAL" "$SYMLINK"
511512
], [
512513
AC_MSG_NOTICE([cannot create convenience symlink $SYMLINK -> $SAGE_LOCAL because the file exists and is not a symlink; this is harmless])
513514
])
514515
SYMLINK="${ac_top_build_prefix}venv"
515516
AS_IF([test -L "$SYMLINK" -o ! -e "$SYMLINK"], [
516517
AC_MSG_NOTICE([creating convenience symlink $SYMLINK -> $SAGE_VENV])
518+
rm -f "$SYMLINK"
517519
ln -sf "$SAGE_VENV" "$SYMLINK"
518520
], [
519521
AC_MSG_NOTICE([cannot create convenience symlink $SYMLINK -> $SAGE_VENV because the file exists and is not a symlink; this is harmless])

0 commit comments

Comments
 (0)