helm/dev/php/_init

28 lines
533 B
Plaintext
Raw Normal View History

2018-01-28 17:56:47 -08:00
#!/usr/bin/env zsh
source ${0:A:h}/../../deploy
source env.zsh
install() {
_ensure_repo madumlao/phpenv $PHPENV_ROOT
_ensure_repo php-build/php-build $PHPENV_ROOT/plugins/php-build
case $(_os) in
arch) pacaur --needed --noconfirm --noedit -S libmcrypt tidy ;;
macos) brew install libmcrypt tidy-html5 ;;
esac
}
update() {
if [[ -n $PHPENV_ROOT ]]; then
cd $PHPENV_ROOT && git pull
for ver in $PHPENV_ROOT/plugins/*(/N); do
cd $ver && git pull
done
fi
}
# link() { }
# clean() { }
init "$@"