[BACK]Return to use-asir-mode.sh CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-mode

Annotation of OpenXM/src/asir-mode/use-asir-mode.sh, Revision 1.2

1.1       takayama    1: #!/bin/sh
1.2     ! takayama    2: # $OpenXM: OpenXM/src/asir-mode/use-asir-mode.sh,v 1.1 2016/02/12 02:39:26 takayama Exp $
1.1       takayama    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" ; \
1.2     ! takayama   31:        echo "       use-asir-mode.sh --local-yes" ; \
1.1       takayama   32:        echo "       --use-site-lisp has not been implemented." ; \
                     33: fi
                     34:
                     35: if [ $# = 1 ]; then
                     36: if [ $1 = "--local" ]; then
                     37:  _ok_local ; \
                     38:  _install_local ; \
                     39: fi
1.2     ! takayama   40: if [ $1 = "--local-yes" ]; then
        !            41:  _install_local ; \
        !            42: fi
1.1       takayama   43: fi
                     44:
                     45:
                     46:
                     47:
                     48:
                     49:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>