Skip to content

Commit

Permalink
Add script to automate removing repo symlinks
Browse files Browse the repository at this point in the history
We need to use a fork of the cxx crate until something like
dtolnay#1343 can hopefully be merged
upstream but we also don't want to require Windows developers to
have to enable support for symlinks, so we'll instead copy the
syntax directory, similar to what would effectively happen when
the cxx crate is published to crates.io
  • Loading branch information
rib committed Apr 24, 2024
1 parent 4fcf972 commit 50e01ff
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions copy-syntax.sh
@@ -0,0 +1,15 @@
#!/bin/bash

SYMLINKS="./gen/build/src/syntax \
./gen/cmd/src/syntax \
./gen/lib/src/syntax \
./macro/src/syntax"

for symlink in $SYMLINKS
do
rm -fr $symlink
cp -av ./syntax $symlink
git add $symlink
done

git commit -m "Remove repo symlinks by copying ./syntax directory"

0 comments on commit 50e01ff

Please sign in to comment.