2016-03-13 22:57:23 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
|
|
if [ ! -e cli/target/scala-2.11/proguard/coursier-standalone.jar ]; then
|
|
|
|
|
echo "Generating proguarded JAR..." 1>&2
|
2017-03-06 10:14:28 +01:00
|
|
|
sbt ++2.11.8 cli/proguard:proguard
|
2016-03-13 22:57:23 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cat > coursier-standalone << EOF
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
exec java -noverify -cp "\$0" coursier.cli.Coursier "\$@"
|
|
|
|
|
EOF
|
|
|
|
|
cat cli/target/scala-2.11/proguard/coursier-standalone.jar >> coursier-standalone
|
|
|
|
|
chmod +x coursier-standalone
|