#!/bin/bash

cd "$(dirname `readlink -f "$0"`)"
cd ..

mvn package
mkdir -p ~/bin
cat <<EOF > ~/bin/japp
#!/bin/bash
java -jar $(readlink -f ./target/japp-jar-with-dependencies.jar) "\$@"
EOF
chmod 755 ~/bin/japp
