#!/bin/bash # Instruction for use: # ~~~~~~~~~~~~~~~~~~~~ # 1) Copy this script into some temporary directory, and # 2) Download # svn.gna.org/viewcvs/*checkout*/latexrefman/trunk/latex2e-fr.texi # to some place # 3) Adapt the two variables TEXI_FILE & EMACS to your configuration, under # some unsername entry distincitive of you. # 4) Run the script. case $USERNAME in Vincent) TEXI_FILE=/local/projects/latexrefman/latexrefman/latex2e-fr.texi EMACS=/c/Nos_Programmes/GNU/Emacs/bin/emacs.exe;; *) echo "Uknown user!!" >2 exit;; esac if [ "$1" == "--fundamental" ]; then FUNDAMENTAL=$2 fi case $FUNDAMENTAL in yes|true|1) FUNDAMENTAL=1;; no|false|0) FUNDAMENTAL=0;; *) FUNDAMENTAL=1;; esac HERE=$(dirname $0) # We make some AWK script to remove of the file local variable that # are not relevant for the test, and configure the coding either to # latin-9 or to utf-8. We will show that utf-8 (ie math symbol are # displayed) is horribly slower than latin-9 cat >emacs-bug22519.awk < $HERE/${CODING}-l2e-fr.texi done # Now we make some Emacs script to make the benchmarking. Benchmark # result is saved to some result.txt file cat >$HERE/emacs-bug22519.el <