Annotation of loncom/html/adm/jmol/commands, revision 1.1

1.1     ! raeburn     1: currversion=0.0
        !             2: jmoldir='/home/httpd/html/adm/jmol'
        !             3: if [ -e $jmoldir ]
        !             4: then
        !             5:   if [ -e "$jmoldir/VERSION" ]
        !             6:   then
        !             7:       currversion=`cat $jmoldir/VERSION`
        !             8:   fi
        !             9: fi
        !            10: newversion=`cat VERSION`
        !            11: comparison=`echo "$newversion > $currversion" | bc`
        !            12: if [ $comparison -gt 0 ]
        !            13: then
        !            14:   if [ -e $jmoldir ]
        !            15:   then
        !            16:     rm -rf $jmoldir
        !            17:   fi
        !            18:   unzip -q -o -d $jmoldir jmol-loncapa.zip
        !            19:   mv $jmoldir/jmol-14.2.12.loncapa/* $jmoldir/.
        !            20:   rm -r $jmoldir/jmol-14.2.12.loncapa
        !            21:   cp VERSION $jmoldir/VERSION
        !            22:   chown -R www:www $jmoldir
        !            23:   find $jmoldir -type d -exec chmod u=rwx,go-rwx {} \;
        !            24: fi

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