Implement keep_alive
This commit is contained in:
parent
0caac6d77b
commit
9d797e9995
|
@ -2,11 +2,8 @@
|
||||||
|
|
||||||
# ~/.osx — http://mths.be/osx
|
# ~/.osx — http://mths.be/osx
|
||||||
|
|
||||||
# Ask for the administrator password upfront
|
source ~/.dotfiles/zsh/lib/util
|
||||||
sudo -v
|
keep_alive
|
||||||
|
|
||||||
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
|
|
||||||
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
|
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
|
@ -4,10 +4,13 @@ if ! pkg_exists python; then
|
||||||
pkg_install python
|
pkg_install python
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
source ~/.dotfiles/zsh/lib/util
|
||||||
|
keep_alive
|
||||||
|
|
||||||
echo_g "==> Installing plugins"
|
echo_g "==> Installing plugins"
|
||||||
easy_install pip
|
sudo easy_install pip
|
||||||
easy_install cython
|
sudo easy_install cython
|
||||||
pip install PyOpenGL PyOpenGL_accelerate
|
sudo pip install PyOpenGL PyOpenGL_accelerate
|
||||||
|
|
||||||
# Install sfml
|
# Install sfml
|
||||||
source ~/.dotfiles/install/sfml
|
source ~/.dotfiles/install/sfml
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
if is_mac; then
|
if is_mac; then
|
||||||
|
|
||||||
|
keep_alive
|
||||||
|
|
||||||
# Get SFML 2.1
|
# Get SFML 2.1
|
||||||
if [ ! -d /Library/Frameworks/SFML.framework ]; then
|
if [ ! -d /Library/Frameworks/SFML.framework ]; then
|
||||||
echo_g "==> Installing SFML 2.1"
|
echo_g "==> Installing SFML 2.1"
|
||||||
|
@ -18,7 +20,7 @@ if is_mac; then
|
||||||
sudo ./install.sh
|
sudo ./install.sh
|
||||||
rm -rf ~/.temp-sfml
|
rm -rf ~/.temp-sfml
|
||||||
|
|
||||||
pip install git+git://github.com/Sonkun/python-sfml.git@v1.3
|
sudo pip install git+git://github.com/Sonkun/python-sfml.git@v1.3
|
||||||
else
|
else
|
||||||
echo_r "==> SFML 2.1 already installed"
|
echo_r "==> SFML 2.1 already installed"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue