# HG changeset patch
# User Jason Grout <jason.grout@drake.edu>
# Date 1326491924 21600
# Node ID 32b211e977bcd92d7cfb740672b30ce450225634
# Parent 717b528429803b82053ee773096494e925784933
Update several jsmath references in the scripts repository
diff git a/sageapplyticket b/sageapplyticket
a

b


574  574  # currently, we only check to see if the doc build script actually 
575  575  # raised an exception. i don't know if it's possible that it 
576  576  # could do something else to signal bad behavior. 
577   verbosity_command("%s docbuild all jsmath html"%SAGE_COMMAND, tmp_file, verbose) 
 577  verbosity_command("%s docbuild all mathjax html"%SAGE_COMMAND, tmp_file, verbose) 
578  578  
579  579  f = open(tmp_file) 
580  580  for line in f.readlines(): 
diff git a/sageclone b/sageclone
a

b


124  124  
125  125  try: 
126  126  index = open(os.path.join(SAGE_ROOT, "devel/sage/doc/output/html/en/reference/index.html")) 
127   if index.read().find("jsmath") != 1: 
128   jsmath = " jsmath" 
 127  if index.read().find("mathjax") != 1: 
 128  mathjax = " mathjax" 
129  129  else: 
130   jsmath = "" 
 130  mathjax = "" 
131  131  print "" 
132  132  print "After cloning, if you change any Sage library files and want to rebuild" 
133  133  print "the html version of the reference manual, use the command" 
134   print " sage docbuild%s reference html" % jsmath 
 134  print " sage docbuild%s reference html" % mathjax 
135  135  print "(after running 'sage b')." 
136  136  print "" 
137  137  print "Note: if *before* cloning, you have changed any Sage library files" 
… 
… 

140  140  print "to be incorporated into the reference manual." 
141  141  print "" 
142  142  print "Updating modification times for the documentation..." 
143   cmd = 'sage docbuild%s updatemtimes reference html' % jsmath 
 143  cmd = 'sage docbuild%s updatemtimes reference html' % mathjax 
144  144  print cmd 
145  145  proc = subprocess.Popen([cmd], shell=True) 
146  146  if proc.wait(): 