aboutsummaryrefslogtreecommitdiff
path: root/switch
diff options
context:
space:
mode:
Diffstat (limited to 'switch')
-rwxr-xr-xswitch6
1 files changed, 6 insertions, 0 deletions
diff --git a/switch b/switch
new file mode 100755
index 0000000..41fa57b
--- /dev/null
+++ b/switch
@@ -0,0 +1,6 @@
+#!/bin/sh
+if test -z "$1"; then
+ echo "Usage: switch <Minecraft version>"
+fi
+cc -D_POSIX_C_SOURCE=200809L -std=c99 -ljson-c -lcurl -o gen gen.c
+./gen -v "$1"