Subversion Repositories wimsdev

Rev

Rev 16141 | Rev 16660 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16141 Rev 16628
Line 46... Line 46...
46
      exit 1
46
      exit 1
47
    fi
47
    fi
48
  fi
48
  fi
49
  if [ "$opt" = "--mathjax" ] ; then
49
  if [ "$opt" = "--mathjax" ] ; then
50
    echo "${PURPLE}** MathJax installation **${NC}"
50
    echo "${PURPLE}** MathJax installation **${NC}"
51
    vmathjax=2.7.5
51
    #vmathjax=2.7.9
-
 
52
    vmathjax=3.2.0
52
 
53
 
53
    cd tmp
54
    cd tmp
54
    echo "downloading MathJax $vmathjax"
55
    echo "downloading MathJax $vmathjax"
55
    wget https://github.com/mathjax/MathJax/archive/$vmathjax.zip
56
    wget https://github.com/mathjax/MathJax/archive/$vmathjax.zip
56
    if [ -f "$vmathjax.zip" ] ; then
57
    if [ -f "$vmathjax.zip" ] ; then
Line 59... Line 60...
59
      rm -f $vmathjax.zip
60
      rm -f $vmathjax.zip
60
      cd $dir
61
      cd $dir
61
      if [ -d "public_html/scripts/js/mathjax" ] ; then
62
      if [ -d "public_html/scripts/js/mathjax" ] ; then
62
        rm -rf public_html/scripts/js/mathjax
63
        rm -rf public_html/scripts/js/mathjax
63
      fi
64
      fi
64
      mv -f tmp/MathJax-* public_html/scripts/js/mathjax
65
      mv -f tmp/MathJax-*/es5 public_html/scripts/js/mathjax
65
      echo "${GREEN}Success${NC} : Mathjax $vmathjax has been installed."
66
      echo "${GREEN}Success${NC} : Mathjax $vmathjax has been installed."
66
    else
67
    else
67
      echo "${RED}Warning : Mathjax hasn't been downloaded.${NC}"
68
      echo "${RED}Warning : Mathjax hasn't been downloaded.${NC}"
68
      sleep 5
69
      sleep 5
69
      cd $dir
70
      cd $dir