Annotation of OpenXM/src/asir-mode/use-asir-mode.sh, Revision 1.1
1.1 ! takayama 1: #!/bin/sh
! 2: # $OpenXM$
! 3:
! 4: _ok_local() {
! 5: echo "------------------------------------------------------------------"
! 6: echo "This script install $OpenXM_HOME/share/emacs/asir-mode.el"
! 7: echo "to your .emacs.d and modify your .emacs.d/init.el to enable asir-mode.el"
! 8: echo -n "y: go ahead, n: stop : "
! 9: read ans
! 10: if [ $ans = "y" ]; then
! 11: return
! 12: fi
! 13: if [ $ans = "n" ]; then
! 14: echo "Aborting use-asir-mode.sh" ; \
! 15: exit
! 16: fi
! 17: }
! 18:
! 19: _install_local() {
! 20: mkdir -p $HOME/.emacs.d/OpenXM
! 21: cp $OpenXM_HOME/share/emacs/asir-mode.el $HOME/.emacs.d/OpenXM
! 22: cat $OpenXM_HOME/share/emacs/use-asir-mode-local.txt >>$HOME/.emacs.d/init.el
! 23: }
! 24:
! 25: _install() {
! 26: cat $OpenXM_HOME/share/emacs/use-asir-mode-local.txt >>$HOME/.emacs.d/init.el
! 27: }
! 28:
! 29: if [ $# = 0 ]; then
! 30: echo "Usage: use-asir-mode.sh --local" ; \
! 31: echo " --use-site-lisp has not been implemented." ; \
! 32: fi
! 33:
! 34: if [ $# = 1 ]; then
! 35: if [ $1 = "--local" ]; then
! 36: _ok_local ; \
! 37: _install_local ; \
! 38: fi
! 39: fi
! 40:
! 41:
! 42:
! 43:
! 44:
! 45:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>