aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorEduardo Julian2019-04-08 20:41:06 -0400
committerEduardo Julian2019-04-08 20:41:06 -0400
commitd049f53804943bd634f76153b9afbb9b1289361c (patch)
tree60a1ac120979fb01f2431caa07efc3351bb00615 /commands
parent0e8ad54e4b9a285a213478232d0155466854225b (diff)
Small improvement to commands file.
Diffstat (limited to 'commands')
-rw-r--r--commands24
1 files changed, 14 insertions, 10 deletions
diff --git a/commands b/commands
index 9350bdf6e..097e22da6 100644
--- a/commands
+++ b/commands
@@ -1,3 +1,13 @@
+# Count lines of code
+find . -name '*.lux' | xargs wc -l
+
+# Clean All
+cd ~/lux/luxc/ && lein clean && \
+cd ~/lux/stdlib/ && lein clean && \
+cd ~/lux/new-luxc/ && lein clean && \
+cd ~/lux/lux-js/ && lein clean && \
+cd ~/lux/lux-python/ && lein clean
+
# Old Lux compiler
# Re-build and re-install
cd ~/lux/luxc/ && lein clean && lein install
@@ -33,7 +43,7 @@
cd ~/lux/lux-js/ && lein_2_7_1 lux auto build
cd ~/lux/lux-js/ && lein clean && lein_2_7_1 lux auto build
# Try
- cd ~/lux/lux-js/ && java -jar target/program.jar build --source ~/lux/stdlib/source --source ~/lux/stdlib/test --target ~/lux/stdlib/target --module test/lux
+ cd ~/lux/lux-js/ && java -jar target/program.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux
# Python compiler
# Test
@@ -43,7 +53,7 @@
cd ~/lux/lux-python/ && lein_2_7_1 lux auto build
cd ~/lux/lux-python/ && lein clean && lein_2_7_1 lux auto build
# Try
- cd ~/lux/lux-python/ && java -jar target/program.jar build --source ~/lux/stdlib/source --source ~/lux/stdlib/test --target ~/lux/stdlib/target --module test/lux
+ cd ~/lux/lux-python/ && java -jar target/program.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux
# Run compiler test suite
cd ~/lux/new-luxc/ && lein_2_7_1 lux auto test
@@ -51,15 +61,9 @@ cd ~/lux/new-luxc/ && lein clean && lein_2_7_1 lux auto test
cd ~/lux/new-luxc/ && lein_2_7_1 lux auto build
cd ~/lux/new-luxc/ && lein clean && lein_2_7_1 lux auto build
-# Count lines of code
-find . -name '*.lux' | xargs wc -l
-
-# Clean All
-cd ~/lux/luxc/ && lein clean && cd ~/lux/stdlib/ && lein clean && cd ~/lux/new-luxc/ && lein clean
-
# REPL
-cd ~/lux/new-luxc/ && java -jar target/program.jar repl --source ~/lux/stdlib/source --source ~/lux/stdlib/test --target ~/lux/stdlib/target
+cd ~/lux/new-luxc/ && java -jar target/program.jar repl --source ~/lux/stdlib/source --target ~/lux/stdlib/target
# Build
-cd ~/lux/new-luxc/ && java -jar target/program.jar build --source ~/lux/stdlib/source --source ~/lux/stdlib/test --target ~/lux/stdlib/target --module tests
+cd ~/lux/new-luxc/ && java -jar target/program.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux