mirror of https://github.com/rust-lang/rfcs
FIXES #3214 generate-books.sh: ln --relative not supported on macOS
* Omit using "ln -r" for symbolic link creation * Create symbolic links with old style expression * Creates relative links
This commit is contained in:
parent
16f3bc024b
commit
ebd55367db
|
@ -8,15 +8,15 @@ fi
|
|||
|
||||
printf '[Introduction](introduction.md)\n\n' > src/SUMMARY.md
|
||||
|
||||
find ./text ! -type d -print0 | xargs -0 -I {} ln -frs {} -t src/
|
||||
find text ! -type d -print0 | xargs -0 -I {} ln -fs ../{} src/
|
||||
|
||||
find ./text ! -type d -name '*.md' -print0 \
|
||||
| sort -z \
|
||||
| while read -r -d '' file;
|
||||
do
|
||||
printf -- '- [%s](%s)\n' "$(basename "$file" ".md")" "$(basename "$file")"
|
||||
printf -- '- [%s](%s)\n' "$(basename "$file" ".md")" "$(basename "$file")"
|
||||
done >> src/SUMMARY.md
|
||||
|
||||
ln -frs README.md src/introduction.md
|
||||
ln -fs ../README.md src/introduction.md
|
||||
|
||||
mdbook build
|
||||
|
|
Loading…
Reference in New Issue