Skip to content
Snippets Groups Projects
Commit 66522a29 authored by ezsh's avatar ezsh
Browse files

Join JS script files for Twine in aphabetical order

parent ac403ae9
No related branches found
No related tags found
1 merge request!3404Fix twine js
...@@ -6,8 +6,13 @@ ...@@ -6,8 +6,13 @@
# $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)
files=$(echo "$files" | sort)
echo "" > "$2" echo "" > "$2"
find . -path ./art/assistantArt.js -prune -o -name '*.js' -exec echo -e "\n/* {} */\n" \; -a -exec sed -nf "$1"/devTools/stripComments.sed {} \; >> "$2" for f in $files; do
echo -e "\n/* ${f} */\n" >> "$2"
sed -nf "$1"/devTools/stripComments.sed "$f" >> "$2"
done
} }
ROOT_REPO_DIR="$(git rev-parse --show-toplevel)" ROOT_REPO_DIR="$(git rev-parse --show-toplevel)"
......
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