Rename corescripts from .lua to .luau

This commit is contained in:
Lewin Kelly 2023-08-14 19:47:32 +01:00
parent b56129fc7b
commit 3c7499eb2e
29 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,3 @@
# Corescripts
After installing Aftman and running `aftman install`, run `./compile.sh` to compile the corescripts from ./lua/\*.lua to ./processed/\*.lua.
After installing Aftman and running `aftman install`, run `./compile.sh` to compile the corescripts from ./luau/\*.luau to ./processed/\*.lua.

View File

@ -1,9 +1,9 @@
echo "Processing corescripts..."
for file in lua/[0-9]*.lua; do
darklua process -c dense.json5 $file processed/$(basename "$file")
for file in luau/[0-9]*.luau; do
darklua process -c dense.json5 $file processed/$(basename "${file::-1}")
done
echo "Processing other corescripts..."
for file in lua/[a-z]*.lua; do
darklua process -c lines.json5 $file processed/$(basename "$file")
for file in luau/[a-z]*.luau; do
darklua process -c lines.json5 $file processed/$(basename "${file::-1}")
done