Skip to content

Commit 50e01ff

Browse files
committedApr 24, 2024
Add script to automate removing repo symlinks
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
1 parent 4fcf972 commit 50e01ff

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎copy-syntax.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
SYMLINKS="./gen/build/src/syntax \
4+
./gen/cmd/src/syntax \
5+
./gen/lib/src/syntax \
6+
./macro/src/syntax"
7+
8+
for symlink in $SYMLINKS
9+
do
10+
rm -fr $symlink
11+
cp -av ./syntax $symlink
12+
git add $symlink
13+
done
14+
15+
git commit -m "Remove repo symlinks by copying ./syntax directory"

0 commit comments

Comments
 (0)
Please sign in to comment.