Created
December 5, 2016 09:36
-
-
Save scorredoira/12ebb6e4709faebba5434d44938a99e6 to your computer and use it in GitHub Desktop.
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 | |
set -e | |
cd githubliteide/build | |
# -f first time install, clones the repo and prepares the build env. | |
# -u update build | |
# -k install original | |
# | |
while getopts ":fpuki" arg; do | |
case $arg in | |
k) | |
git checkout -f master | |
git pull visualfc master | |
./update_pkg.sh | |
git push -f | |
;; | |
f) | |
git clone https://github.com/visualfc/liteide.git | |
sudo apt-get update | |
sudo apt-get install -y qt4-dev-tools libqt4-dev libqt4-core libqt4-gui libqtwebkit-dev g++ | |
./update_pkg.sh | |
;; | |
p) | |
cd .. | |
git checkout patched | |
git reset --hard | |
git pull --rebase visualfc master | |
cd build | |
./update_pkg.sh | |
git push -f | |
;; | |
u) | |
./update_pkg.sh | |
;; | |
\?) | |
echo "Invalid option: -$OPTARG" >&2 | |
exit 1 | |
;; | |
:) | |
echo "Option -$OPTARG requires an argument." >&2 | |
exit 1 | |
;; | |
esac | |
done | |
# build it | |
QTDIR=/usr ./build_linux.sh | |
# launch it | |
liteide/bin/liteide | |
# absolute path: /home/don/bin/githubliteide/build/liteide/bin/liteide | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment