From: Simon L. <wzh...@sp...> - 2003-09-16 21:43:13
|
wandsy, Great. That works well for me. I just made some small changes (hopefully improvements) to it. See below: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #!/bin/sh # vimcdoc.sh: vimcdoc Linux install/uninstall script # # Usage: 'vimcdoc.sh install' to install vimcdoc # 'vimcdoc.sh uninstall' to uninstall vimcdoc # # Author: wandys (wa...@us...) ####################################################### vim --cmd ":exec 'normal i' . \$VIMRUNTIME | wq! vimrt.$$" 2> /dev/null if [ -e vimrt.$$ ]; then VIM_PATH=`cat vimrt.$$` rm vimrt.$$ else echo 'Error: No vim found on this system.' exit 1 fi case $1 in install) if [ ! -d $VIM_PATH/doc.bk ]; then mkdir $VIM_PATH/doc.bk cp $VIM_PATH/doc/* $VIM_PATH/doc.bk fi cp -r doc/* $VIM_PATH/doc echo 'Done.' ;; uninstall) mv $VIM_PATH/doc.bk/* $VIM_PATH/doc rmdir $VIM_PATH/doc.bk rm -rf $VIM_PATH/doc/CVS echo 'Done.' ;; *) echo "Usage: $0 {install|unstall}" exit 1 ;; esac ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The way of telling what $VIMRUNTIME is has been changed. I think this is better and more "vimmy" :-) The installation now includes the 'CVS' directory to tell 'cp' to shut up, but more to allow user to update their documents easily. So if you can review the modification and give it a try on BSD and see it works, you can check it in into /data directory. I've prepared new INSTALL, README docs so that we can make another small release - 0.3.6 in no time. Cheeres, lang2 -- Simon Liang wzh...@sp... -- http://www.fastmail.fm - Faster than the air-speed velocity of an unladen european swallow |