-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompile
executable file
·24 lines (20 loc) · 871 Bytes
/
compile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
java -Dfile.encoding=UTF8 -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -jar sbt-launch-*.jar "start-script"
echo "#!/bin/bash" > run
echo "" >> run
echo "TARGET_FILE=\`basename \${BASH_SOURCE[0]}\`" >> run
echo "" >> run
echo "# Iterate down a (possible) chain of symlinks" >> run
echo "while [ -L \"\$TARGET_FILE\" ]" >> run
echo "do" >> run
echo " TARGET_FILE=\`readlink \$TARGET_FILE\`" >> run
echo " cd \`dirname \$TARGET_FILE\`" >> run
echo " TARGET_FILE=\`basename \$TARGET_FILE\`" >> run
echo "done" >> run
echo "" >> run
echo "# Compute the canonicalized name by finding the physical path" >> run
echo "# for the directory we're in and appending the target file." >> run
echo "PHYS_DIR=\`pwd -P\`" >> run
echo "PROJECT_DIR=\`dirname \$PHYS_DIR/\$TARGET_FILE\`" >> run
echo "" >> run
tail -n+3 target/start >> run
chmod u+x run