File:  [LON-CAPA] / loncom / html / adm / geogebra / commands
Revision 1.5: download - view: text, annotated - select for diffs
Sat Apr 4 23:21:56 2015 UTC (9 years, 1 month ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, HEAD
- Bug 6777 Geogebra for HTML5
  - Update to version 5.074 (8 MB tarball).
    Use of version 5.0 causes URL of a problem containing functionplotresponse
    item to be sent to: https://tube.geogebra.org/api/json.php

currversion=0.0
webdir='/home/httpd/html/adm/geogebra/web'
if [ -e $webdir ]
then
    if [ -e "$webdir/VERSION" ]
    then
        currversion=`cat $webdir/VERSION`
    fi
fi
newversion=`cat VERSION`
comparison=`echo "$newversion > $currversion" | bc`
if [ $comparison -gt 0 ]
then
  if [ -e $webdir ] 
  then
      rm -rf $webdir
      if [ -e "$webdir/geogebra_html5.tar.gz" ]
      then
          rm "$webdir/geogebra_html5.tar.gz"
      fi
  fi
  tar -xzf geogebraweb_5.0.tar.gz
  mv web $webdir
  cp VERSION $webdir/VERSION
  chown -R www:www $webdir
  find $webdir -type d -exec chmod u=rwx,go-rwx {} \;
  if [ -e "$webdir/geogebraweb_5.0.tar.gz" ]
  then
      rm "$webdir/geogebraweb_5.0.tar.gz"
  fi
  sleep 1
fi

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