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

Annotation of OpenXM/src/asir-port/asir-port.sh, Revision 1.1

1.1     ! takayama    1: #!/bin/sh
        !             2: # $OpenXM$
        !             3: # Downloading Risa/Asir for FLA-free systems.
        !             4: # Risa/Asir is installed under $HOME/.asir-tmp/$asirname
        !             5: # Symbolic link to $asirname from $OpenXM_HOME/bin/asir must exist
        !             6: # in the distribution of FLA-free
        !             7: # Starting script of Risa/Asir may call this shell script.
        !             8: os=`uname -s`
        !             9: md=`cat $OpenXM_HOME/lib/asir/distinfo`
        !            10: # For testing
        !            11: asir="ftp://ftp.math.kobe-u.ac.jp/pub/asir/gzip.exe"
        !            12: asirname="gzip.exe"
        !            13: #
        !            14: #asir="ftp://ftp.math.kobe-u.ac.jp/pub/asir/binaries/asir-$os-$md"
        !            15: #asirname="asir-$os-$md"
        !            16:
        !            17: #echo $asir
        !            18: _agree() {
        !            19:        echo "------------------------------------------------------------------"
        !            20:        echo "Risa/Asir is distributed with no warranty for non-commercial use."
        !            21:        echo "Do you agree with the license agreement at $OpenXM_HOME/Copyright/Copyright.asir?"
        !            22:        echo "------------------------------------------------------------------"
        !            23:        echo "y: agree, n: do not agree, v: read the detail of the agreement."
        !            24:        read -e -p "(y/n/v)" ans
        !            25:        if [ $ans = "y" ]; then
        !            26:                return
        !            27:        fi
        !            28:        if [ $ans = "n" ]; then
        !            29:                echo "Aborting the installation." ; \
        !            30:                exit
        !            31:     fi
        !            32:        if [ $ans = "v" ]; then
        !            33:                more $OpenXM_HOME/Copyright/Copyright.asir ; \
        !            34:                _agree ; \
        !            35:                return
        !            36:        fi
        !            37:        _agree
        !            38: }
        !            39:
        !            40: if [ ! -f $HOME/.asir-tmp/$asirname ]; then
        !            41:        _agree ; \
        !            42:        oxfetch.sh $asir $HOME/.asir-tmp ; \
        !            43:        ln -s $HOME/.asir-tmp/$asirname $HOME/.asir-tmp/asir ; \
        !            44: fi
        !            45:
        !            46: #fep asir
        !            47:
        !            48:
        !            49:

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