Skip to content

Commit

Permalink
❗ [fix]: Move copy of load-figure.js to dist/WEBSITE/shared until aft…
Browse files Browse the repository at this point in the history
…er copying of static files, as 'subdirectory merge' seems to cause a problem on Ubuntu (although not on my Mac).
  • Loading branch information
rolyp committed Dec 30, 2024
1 parent b0fd04e commit 2e16d67
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions script/bundle-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ for PAGE in "${PAGES[@]}"; do
done

echo "Processing other static files:"
set +x
set +u # try to remove this
set +xu # try to remove +u
TO_COPY=()
shopt -s extglob
for CHILD in website/$WEBSITE/!(.|..); do
Expand All @@ -42,16 +41,16 @@ for CHILD in website/$WEBSITE/!(.|..); do
fi
done
shopt -u extglob
set -x
set -xu

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

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

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

cp -r fluid dist/$WEBSITE_LISP_CASE
echo "Bundled website $WEBSITE"

0 comments on commit 2e16d67

Please sign in to comment.