-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed build script to work with it's directory as the working directory
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
cd ../src || exit | ||
cd ../../src || exit | ||
cp ../build/scripts/amalg.lua ./ # copy bc amalg.lua and main.lua + dependencies must be in same dir for line 4 | ||
|
||
lua -lamalg main.lua # generate require map cache for amalg.lua | ||
./amalg.lua -o merged.lua -s main.lua -c # merge all files into one | ||
rm -rf amalg.cache | ||
rm -rf amalg.lua # remove copy | ||
rm -rf amalg.lua # remove copy | ||
|
||
../build/scripts/luasrcdiet.lua --maximum -o reduced.lua merged.lua # reduce file | ||
rm -rf merged.lua # remove non-reduced file | ||
mv reduced.lua ../build/yoshi-nes-ai.lua # move and rename | ||
rm -rf merged.lua # remove non-reduced file | ||
mv reduced.lua ../build/yoshi-nes-ai.lua # move and rename | ||
exit |