Last active
December 17, 2015 23:29
-
-
Save syusui-s/5689484 to your computer and use it in GitHub Desktop.
[aki017/OpenRitsPen]( https://github.com/aki017/OpenRitsPen )をビルドするためのシェルスクリプト。ライセンスはパブリックドメイン。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if hash git 2>/dev/null;then | |
| git clone https://github.com/aki017/OpenRitsPen && | |
| cd OpenRitsPen | |
| elif hash wget 2>/dev/null;then | |
| wget https://github.com/aki017/OpenRitsPen/archive/master.zip --no-check-certificate && | |
| unzip master && | |
| cd OpenRitsPen-master | |
| else | |
| echo "error: git or wget is not installed in your computer. Aborting." | |
| exit 1 | |
| fi | |
| mkdir bin/ && | |
| javac src/info/aki017/OpenRitsPen/*.java -d bin/ && | |
| cp -r images/ bin/ && | |
| cat << EOF > bin/OpenRitsPen.sh | |
| #!/bin/bash | |
| java info.aki017.OpenRitsPen.Launcher | |
| EOF | |
| chmod +x bin/OpenRitsPen.sh | |
| echo "build complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment