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

Commit

Permalink
configure.ac: Remove conveniene symlinks before (re)creating them
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Sep 28, 2021
1 parent b3f7d34 commit fc4b641
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -507,13 +507,15 @@ AC_CONFIG_COMMANDS(links, [
SYMLINK="${ac_top_build_prefix}prefix"
AS_IF([test -L "$SYMLINK" -o ! -e "$SYMLINK"], [
AC_MSG_NOTICE([creating convenience symlink $SYMLINK -> $SAGE_LOCAL])
rm -f "$SYMLINK"
ln -sf "$SAGE_LOCAL" "$SYMLINK"
], [
AC_MSG_NOTICE([cannot create convenience symlink $SYMLINK -> $SAGE_LOCAL because the file exists and is not a symlink; this is harmless])
])
SYMLINK="${ac_top_build_prefix}venv"
AS_IF([test -L "$SYMLINK" -o ! -e "$SYMLINK"], [
AC_MSG_NOTICE([creating convenience symlink $SYMLINK -> $SAGE_VENV])
rm -f "$SYMLINK"
ln -sf "$SAGE_VENV" "$SYMLINK"
], [
AC_MSG_NOTICE([cannot create convenience symlink $SYMLINK -> $SAGE_VENV because the file exists and is not a symlink; this is harmless])
Expand Down

0 comments on commit fc4b641

Please sign in to comment.