Skip to content
Snippets Groups Projects
Commit 3e7ee270 authored by ezsh's avatar ezsh
Browse files

Handle the js subdir for Twine JS generation

parent a9b10b60
No related branches found
No related tags found
1 merge request!6821Twine JS generation update
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# $1: root repo dir # $1: root repo dir
# $2: output file name # $2: output file name
collectJSForTwine() { collectJSForTwine() {
local files=$(find . -path ./art/assistantArt.js -prune -o -name '*.js' -print) local files=$(find js src/js -path ./art/assistantArt.js -prune -o -name '*.js' -print)
files=$(echo "$files" | sort) files=$(echo "$files" | sort)
echo "" > "$2" echo "" > "$2"
for f in $files; do for f in $files; do
...@@ -16,5 +16,5 @@ collectJSForTwine() { ...@@ -16,5 +16,5 @@ collectJSForTwine() {
} }
ROOT_REPO_DIR="$(git rev-parse --show-toplevel)" ROOT_REPO_DIR="$(git rev-parse --show-toplevel)"
cd "${ROOT_REPO_DIR}"/src cd "${ROOT_REPO_DIR}"
collectJSForTwine "${ROOT_REPO_DIR}" "${ROOT_REPO_DIR}/devNotes/twine JS.txt" collectJSForTwine "${ROOT_REPO_DIR}" "${ROOT_REPO_DIR}/devNotes/twine JS.txt"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment