Skip to content

Commit

Permalink
❗ [fix]: -L to dereference symbolic links when copying folders?
Browse files Browse the repository at this point in the history
  • Loading branch information
rolyp committed Dec 30, 2024
1 parent 7d40771 commit 0516b0c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script/bundle-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ while getopts "w:r:" opt; do
esac
done

DIST="${PREFIX}dist"
WEBSITE_LISP_CASE=$(./$PREFIX/script/util/lisp-case.sh "$WEBSITE")
echo "$WEBSITE -> $WEBSITE_LISP_CASE"
mkdir -p "dist/$WEBSITE_LISP_CASE"
Expand Down Expand Up @@ -44,13 +43,13 @@ shopt -u extglob
set -xu

for CHILD in "${TO_COPY[@]}"; do
cp -r "$CHILD" dist/$WEBSITE_LISP_CASE
cp -rL "$CHILD" dist/$WEBSITE_LISP_CASE
done

echo "Processing load-figure.js:"
ls -ld dist/$WEBSITE_LISP_CASE/shared
mkdir -p dist/$WEBSITE_LISP_CASE/shared
cp $DIST/fluid/load-figure.js dist/$WEBSITE_LISP_CASE/shared
cp ${PREFIX}dist/fluid/load-figure.js dist/$WEBSITE_LISP_CASE/shared
# or just bundle load-figure.js to $DIST/fluid/shared instead?

cp -r fluid dist/$WEBSITE_LISP_CASE
Expand Down

0 comments on commit 0516b0c

Please sign in to comment.