Used sequpgrade.sh to upgrade existing seqs

This commit is contained in:
2022-05-29 20:58:23 +02:00
parent 10ee4198f0
commit 6214493c18
57 changed files with 802 additions and 806 deletions

View File

@@ -14,31 +14,31 @@ SCRIPT_NAME=${SCRIPT_FILE%%.*}
CONFIG_FILE_NAME="${SCRIPT_NAME}.cfg"
CONFIG_FILE_TEMPLATE="$WDIR/${CONFIG_FILE_NAME}.example"
step_config() {
seq_config() {
## or to use sequencer api with global config file:
#initSeqConfig "$CONFIG_FILE_NAME" "$CONFIG_FILE_TEMPLATE"
#if [ $? -eq 0 ] ; then
# CONFIG=1
#else
# # End if no configuration file exists
# [ $DRY -eq 0 ] && return -1
# dry || return -1
#fi
## Apt cmdline option to suppress user interaction
[ $QUIET -ne 0 ] && APTOPT="-y"
quiet && APTOPT="-y"
## Return of non zero value will abort the sequence
return 0
}
step_1_info() { echo "Install $toolName"; }
step_1_alias() { ALIAS="install"; }
step_1_alias() { echo "install"; }
step_1() {
exe apt install vim $APTOPT
}
step_2_info() { echo "Installing indentation script $seqVimIndentLoc"; }
step_2_alias() { ALIAS="setup"; }
step_2_alias() { echo "setup"; }
step_2() {
if [ ! -e "$seqVimIndentLoc" ]; then
exe mkdir -p $(dirname "$seqVimIndentLoc")
@@ -46,7 +46,7 @@ step_2() {
wget --content-disposition $indentDownUrl
fi
echoseq " [I] Installing indentation rules"
info "Installing indentation rules"
addConf -c "$seqVimConfigBasic" "$seqVimConfigLoc"
}
seqVimIndentLoc="$HOME/.vim/indent/sh.vim"
@@ -55,17 +55,17 @@ filetype plugin indent on
syntax on"
step_3_info() { echo "Install editorconfig as vim 8 plugin"; }
step_3_alias() { ALIAS="editorconfig"; }
step_3_alias() { echo "editorconfig"; }
step_3() {
local ecDir="$HOME/.vim/pack/editorconfig/start"
local ecUrl='https://github.com/editorconfig/editorconfig-vim.git'
if [ ! -e "$ecDir" ]; then
echoseq " [I] Installing editorconfig plugin"
info "Installing editorconfig plugin"
exe mkdir -p "$ecDir"
exe cd "$ecDir"
exe git clone "$ecUrl"
else
echoseq " [I] Upgrading editorconfig plugin"
info "Upgrading editorconfig plugin"
exe cd "$ecDir"
exe git pull
fi
@@ -73,7 +73,7 @@ step_3() {
step_10_info() { echo "Setup $HOME/.vimrc globaly to use spaces and indent 2"; }
step_10() {
echoseq " [I] Installing formating rules"
info "Installing formating rules"
addConf -a "$seqVimConfig" "$seqVimConfigLoc"
}
seqVimConfig="set expandtab
@@ -81,5 +81,5 @@ set tabstop=2
set softtabstop=2
set shiftwidth=2"
VERSION_SEQREV=15
readonly sqr_minVersion=16
. /usr/local/bin/sequencer.sh