Refactor names
This commit is contained in:
parent
6baf822f69
commit
0ee149f9d8
@ -1,6 +1,6 @@
|
|||||||
### script run plan
|
### script run plan
|
||||||
- run `./pre_run*` scripts
|
- run `./pre_install_*` scripts
|
||||||
- run `./run` to install/build/etc programs
|
- run `./install_programs` to install/build/etc programs
|
||||||
- run `./copy_configs` to copy configs/scripts/executables into place
|
- run `./copy_configs` to copy configs/scripts/executables into place
|
||||||
- run `./post_config*` scripts
|
- run `./post_config_*` scripts
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ while [[ $# > 0 ]]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
local script_dir=$(cd $(dirname "${ZSH_SOURCE[0]}") &> /dev/null && pwd)
|
local script_dir=$(cd $(dirname "${ZSH_SOURCE[0]}") &> /dev/null && pwd)
|
||||||
log "run // script_dir: $script_dir -- args: $single_script_filter"
|
log "install_programs // script_dir: $script_dir -- args: $single_script_filter"
|
||||||
cd $script_dir
|
cd $script_dir
|
||||||
local scripts=(`find ./runs -maxdepth 1 -mindepth 1 -type f`)
|
local scripts=(`find ./installs_and_builds -maxdepth 1 -mindepth 1 -type f`)
|
||||||
for script in $scripts; do
|
for script in $scripts; do
|
||||||
if [[ -x $script ]]; then
|
if [[ -x $script ]]; then
|
||||||
if echo "$script" | grep -qv "$single_script_filter"; then
|
if echo "$script" | grep -qv "$single_script_filter"; then
|
6
installs_and_builds/libs
Executable file
6
installs_and_builds/libs
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
local lua_package="lua5.1"
|
||||||
|
[[ "$BOX_SETUP_OS" = "macos" ]] && lua_package="lua@5.1"
|
||||||
|
|
||||||
|
$BOX_SETUP_INSTALL_COMMAND cmake gettext "$lua_package" liblua5.1-0-dev
|
3
installs_and_builds/neovim
Executable file
3
installs_and_builds/neovim
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
brew install neovim
|
@ -1,22 +1,18 @@
|
|||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
|
|
||||||
local install_command="sudo apt install"
|
# local neovim_dir=$HOME/.local/build/neovim
|
||||||
[[ -x $(which brew) ]] && install_command="brew install"
|
# local neovim_version="v0.10.3"
|
||||||
|
# [ ! -z $NVIM_VERSION ] && neovim_version="$NVIM_VERSION"
|
||||||
local neovim_dir=$HOME/.local/build/neovim
|
# echo "neovim_version: \"$neovim_version\""
|
||||||
local neovim_version="v0.10.3"
|
#
|
||||||
[ ! -z $NVIM_VERSION ] && neovim_version="$NVIM_VERSION"
|
# [ ! -d $neovim_dir ] && git clone https://github.com/neovim/neovim.git $neovim_dir
|
||||||
echo "neovim_version: \"$neovim_version\""
|
# git -C $neovim_dir fetch --all
|
||||||
|
# git -C $neovim_dir checkout $neovim_version
|
||||||
[ ! -d $neovim_dir ] && git clone https://github.com/neovim/neovim.git $neovim_dir
|
#
|
||||||
git -C $neovim_dir fetch --all
|
#
|
||||||
git -C $neovim_dir checkout $neovim_version
|
# make -C $neovim_dir clean
|
||||||
|
# make -C $neovim_dir CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
$install_command cmake gettext lua@5.1 liblua5.1-0-dev
|
# sudo make -C $neovim_dir install
|
||||||
|
|
||||||
make -C $neovim_dir clean
|
|
||||||
make -C $neovim_dir CMAKE_BUILD_TYPE=RelWithDebInfo
|
|
||||||
sudo make -C $neovim_dir install
|
|
||||||
|
|
||||||
# lines below from primeagen's dev repo, uncomment/edit as needed
|
# lines below from primeagen's dev repo, uncomment/edit as needed
|
||||||
# git clone https://github.com/ThePrimeagen/harpoon.git $HOME/personal/harpoon
|
# git clone https://github.com/ThePrimeagen/harpoon.git $HOME/personal/harpoon
|
@ -8,4 +8,15 @@ mkdirs_before_copying_config_files() {
|
|||||||
[[ ! -d $HOME/.local/tmp ]] && mkdir $HOME/.local/tmp
|
[[ ! -d $HOME/.local/tmp ]] && mkdir $HOME/.local/tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[ -z $BOX_SETUP_OS ]] && echo "BOX_SETUP_OS must be set" && exit 1
|
||||||
|
|
||||||
|
local install_cmd=''
|
||||||
|
case $BOX_SETUP_OS in
|
||||||
|
(arch | artix) install_cmd="sudo pacman -S" ;;
|
||||||
|
(debian) export install_cmd="sudo apt install" ;;
|
||||||
|
(macos) export install_cmd="brew install" ;;
|
||||||
|
esac
|
||||||
|
export BOX_SETUP_INSTALL_COMMAND="$install_cmd"
|
||||||
|
|
||||||
mkdirs_before_copying_config_files
|
mkdirs_before_copying_config_files
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user