2012-03-21 20:05:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Initialization - DO NOT REMOVE
|
|
|
|
. helpers/initialize
|
|
|
|
|
|
|
|
##############################################################
|
|
|
|
### Customizations start here ################################
|
|
|
|
##############################################################
|
|
|
|
|
2013-08-08 03:23:13 +00:00
|
|
|
# Get current directory for future use in links
|
|
|
|
cd $(dirname $0)
|
|
|
|
PROJECT_DIR=$(pwd)
|
2012-03-21 20:05:28 +00:00
|
|
|
|
2013-08-08 03:23:13 +00:00
|
|
|
detect_package_manager
|
2012-03-21 20:05:28 +00:00
|
|
|
|
2013-08-08 03:23:13 +00:00
|
|
|
init_paths_and_vars
|
|
|
|
|
|
|
|
# Do prompting early to make longer install easier
|
|
|
|
install_packages=false
|
|
|
|
if ! is_installed "packages" || prompt_yn "Reinstall packages?" ; then
|
|
|
|
install_packages=true
|
|
|
|
fi
|
|
|
|
|
|
|
|
install_vim_src=false
|
|
|
|
if [ "$PACKAGE_MANAGER" == 'apt-get' ]; then
|
|
|
|
# Optional
|
|
|
|
is_installed "vim-from-source"
|
|
|
|
if prompt_yn "Compile vim?" ; then
|
|
|
|
install_vim_src=true
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
install_vim_settings=false
|
|
|
|
if ! is_installed "vim-settings" || prompt_yn "Reinstall vim-settings?" ; then
|
|
|
|
install_vim_settings=true
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Optional
|
|
|
|
install_sfdc=false
|
|
|
|
is_installed "salesforce"
|
|
|
|
if prompt_yn "Install Salesforce tools?" ; then
|
|
|
|
install_sfdc=true
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Optional
|
|
|
|
install_golang=false
|
|
|
|
is_installed "golang"
|
|
|
|
if prompt_yn "Install Go?" ; then
|
|
|
|
install_golang=true
|
|
|
|
fi
|
2012-03-21 20:05:28 +00:00
|
|
|
|
|
|
|
### Run recipes
|
2013-08-08 03:23:13 +00:00
|
|
|
recipe 'dotfiles'
|
|
|
|
recipe 'bin'
|
|
|
|
recipe 'git'
|
|
|
|
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
|
|
|
|
if $install_packages ; then
|
|
|
|
recipe 'packages'
|
|
|
|
set_installed "packages"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $install_vim_src ; then
|
|
|
|
recipe 'compile-install-vim'
|
|
|
|
set_installed "vim-from-source"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $install_vim_settings ; then
|
|
|
|
recipe 'vim-settings'
|
|
|
|
set_installed 'vim-settings'
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $install_sfdc ; then
|
|
|
|
recipe 'salesforce'
|
|
|
|
set_installed 'salesforce'
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $install_golang ; then
|
|
|
|
recipe 'golang'
|
|
|
|
set_installed 'golang'
|
|
|
|
fi
|
2012-03-21 20:05:28 +00:00
|
|
|
|
|
|
|
### Show the Finished banner
|
|
|
|
finished
|
|
|
|
|
2013-08-08 03:23:13 +00:00
|
|
|
# vim: set tabstop=2:softtabstop=2:shiftwidth=2:expandtab
|