===================================================================== --- New Scripts -------------------------- zsh ) vundle-vim helpers - vim/vundle/edit-build-actions - vim/vundle/install - vim/vundle/rebuild quick install-from-source scripts - git/package/install - git/package/build (install --only-build) - git/package/download (install --only-pull) - git/package/update (install --update) config sym-linker (for source-controlled .configs) - config/update (symlinks + terminfo) - config/symlinks (set all symlinks from settings) - config/settings (edit settings which aren't scwrypts env variables) - config/terminfo (load all terminfo from settings) --- Changes ------------------------------ - helper comments are now inserted in all env files - removed underscore prefix for standard AWS environment variables - added "opening" and "finished editing" comments to __EDIT util - added __USAGE to format $USAGE variable to std:err - added __ERROR_CHECK to exit if any __ERROR(s) were called
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
| _DEPENDENCIES+=()
 | |
| _REQUIRED_ENV+=()
 | |
| source ${0:a:h}/../common.zsh
 | |
| #####################################################################
 | |
| 
 | |
| VUNDLE_PLUGIN_DIR="$HOME/.vim/bundle"
 | |
| VUNDLE_BUILD_DEFINITIONS="$VUNDLE_PLUGIN_DIR/build.zsh"
 | |
| 
 | |
| [ ! -f $VUNDLE_BUILD_DEFINITIONS ] && {
 | |
| 	{
 | |
| 		echo -e "#\n# Scwrypts Build Definitions\n#\n"
 | |
| 	} > $VUNDLE_BUILD_DEFINITIONS
 | |
| }
 | |
| 
 | |
| VUNDLE_PLUGIN_LIST=$(ls $VUNDLE_PLUGIN_DIR | grep -v 'Vundle.vim' | grep -v 'build.zsh')
 | |
| source $VUNDLE_BUILD_DEFINITIONS
 | |
| for PLUGIN in $(echo $VUNDLE_PLUGIN_LIST)
 | |
| do
 | |
| 	typeset -f VUNDLE_BUILD__$PLUGIN >/dev/null 2>/dev/null || {
 | |
| 		echo -e "\nVUNDLE_BUILD__$PLUGIN() {\n	# ... build steps from $HOME/.vim/$PLUGIN \n}" \
 | |
| 			>> $VUNDLE_BUILD_DEFINITIONS
 | |
| 		VUNDLE_BUILD__$PLUGIN() {}
 | |
| 	}
 | |
| done
 | |
| 
 | |
| #####################################################################
 | |
| 
 | |
| VUNDLE_PLUGIN_INSTALL() {
 | |
| 	_VIM +PluginInstall +qall \
 | |
| 		&& __SUCCESS 'successfully installed Vundle.vim plugins' \
 | |
| 		|| __FAIL 1 'failed to install Vundle.vim plugins'
 | |
| }
 | |
| 
 | |
| VUNDLE_REBUILD_PLUGINS() {
 | |
| 	local ERRORS=0
 | |
| 
 | |
| 	local PLUGIN
 | |
| 	for PLUGIN in $(echo $VUNDLE_PLUGIN_LIST)
 | |
| 	do
 | |
| 		cd "$VUNDLE_PLUGIN_DIR/$PLUGIN"
 | |
| 		__STATUS "building '$PLUGIN'"
 | |
| 		VUNDLE_BUILD__$PLUGIN \
 | |
| 			&& __SUCCESS "finished building '$PLUGIN'" \
 | |
| 			|| __ERROR "failed to build '$PLUGIN' (see above)" \
 | |
| 			;
 | |
| 	done
 | |
| 
 | |
| 	return $ERRORS
 | |
| }
 |