Commit ccd852c2 authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #219 from rth/fix-symlink-generation

MAINT Allow re-creating broken symlinks under tools/
parents e24c610a fe7e181b
......@@ -4,7 +4,7 @@ FROM circleci/python:3.7.0-stretch-browsers
# Set up the Debian testing repo, and then install g++ from there...
RUN sudo bash -c "echo \"deb http://ftp.us.debian.org/debian testing main contrib non-free\" >> /etc/apt/sources.list" \
&& sudo apt-get update \
&& sudo apt-get install node-less cmake build-essential clang-format-6.0 uglifyjs chromium ccache \
&& sudo apt-get install node-less cmake build-essential clang-format-6.0 uglifyjs chromium ccache libncurses6 \
&& sudo apt-get install -t testing g++-8 \
&& sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 \
&& sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 \
......
......@@ -77,6 +77,9 @@ def make_symlinks(env):
exec_path = Path(__file__).resolve()
for symlink in symlinks:
symlink_path = ROOTDIR / symlink
if os.path.lexists(symlink_path) and not symlink_path.exists():
# remove broken symlink so it can be re-created
symlink_path.unlink()
if not symlink_path.exists():
symlink_path.symlink_to(exec_path)
if symlink == 'c++':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment