-
Notifications
You must be signed in to change notification settings - Fork 0
/
compiler.sh
27 lines (19 loc) · 721 Bytes
/
compiler.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# compiler.sh
# Replaces compiler.bat for Linux environments
# Clear the screen
clear
# Set terminal color to green
echo -e "\e[32m"
# Uncomment the following lines if bundling is required in the future
# echo "Bundling files..."
# java -jar compiler.jar --compilation_level BUNDLE --js libv86.js nodejs.js --js_output_file NodeVM.js --warning_level QUIET
# Minifying package
echo "Minifying package..."
java -jar compiler.jar --compilation_level SIMPLE --js hive_smart_vm.js --js_output_file HiveSmartVM.js --warning_level QUIET
# Uncomment the following lines if you want to start NodeVM.js after compilation
# echo "Starting..."
# node NodeVM.js
# Reset terminal color
echo -e "\e[0m"
echo "Done!"