Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ task fatJar(type:Jar) {
}
baseName = 'lj-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
from files(project('ljwrappers').sourceSets.main.runtimeClasspath)
with jar
}

Expand Down
3 changes: 0 additions & 3 deletions distribution/compile.sh

This file was deleted.

1 change: 1 addition & 0 deletions distribution/hello.lj
50 changes: 50 additions & 0 deletions distribution/lj
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env bash
# vim: set filetype=bash

help() {
echo "Usage: $0 [options] file"
echo ""
echo " Options:"
echo " -h Print this help message and exit"
echo " -t Print type changes found by type inference"
}

args="run"
verbose=false
while getopts :thv flag; do
case $flag in
h)
help
exit
;;
t)
args="${args} -PprintTypeChanges"
;;
\?)
echo "Unrecognized option $OPTARG" 1>&2
echo
help
exit
;;
esac
done
shift $((OPTIND - 1))

if ! $verbose; then
args="${args} -q"
fi

if [ $# == 0 ]; then
echo "Expecting a file" 1>&2
echo
help
exit
fi

args="${args} ${1}"
java -jar lj.jar ${args}
base=$(basename $1)
upbase="$(tr '[:lower:]' '[:upper:]' <<< ${base:0:1})${base:1}"
name="LJ${upbase%.*}"
java -cp "generated:lj.jar" $name
exit
Binary file modified distribution/lj.jar
Binary file not shown.
Binary file removed distribution/lj.zip
Binary file not shown.
2 changes: 0 additions & 2 deletions distribution/run.sh

This file was deleted.

8 changes: 0 additions & 8 deletions distribution/test.sh

This file was deleted.