File:  [LON-CAPA] / loncom / html / adm / jsme / commands
Revision 1.5: download - view: text, annotated - select for diffs
Mon May 27 13:37:15 2024 UTC (5 months, 2 weeks ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_X, version_2_11_5_msu, version_2_11_5, HEAD
- Update JSME to 2024-04-29 version.

currversion=0
jsmedir='/home/httpd/html/adm/jsme'
if [ -e $jsmedir ]
then
  if [ -e "$jsmedir/VERSION" ]
  then
      currversion=`cat $jsmedir/VERSION`
  fi
fi
newversion=`cat VERSION`
comparison=`echo "$newversion > $currversion" | bc`
if [ $comparison -gt 0 ]
then
  if [ -e $jsmedir ]
  then
    rm -rf $jsmedir
  fi
  unzip -q -o -d $jsmedir JSME_2024-04-29.zip
  mv $jsmedir/JSME_2024-04-29/jsme/* $jsmedir/.
  mv $jsmedir/JSME_2024-04-29/license.txt $jsmedir/license.txt
  rm -r $jsmedir/JSME_2024-04-29
  cp VERSION $jsmedir/VERSION
  chown -R www:www $jsmedir
  find $jsmedir -type d -exec chmod u=rwx,go-rwx {} \;
fi

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