Skip to content

Instantly share code, notes, and snippets.

@scorredoira
Created December 5, 2016 09:36
Show Gist options
  • Save scorredoira/12ebb6e4709faebba5434d44938a99e6 to your computer and use it in GitHub Desktop.
Save scorredoira/12ebb6e4709faebba5434d44938a99e6 to your computer and use it in GitHub Desktop.
#!/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