Commits

Smith Dhumbumroong committed 888dc37

Reformat the .install output.

  • Participants
  • Parent commits e5f954a

Comments (0)

Files changed (1)

File ttf-latex-tlwg/ttf-latex-tlwg.install

   echo "done."
 }
 
+update_texlsr() {
+    echo "Updating TeX filename database..."
+    /usr/bin/mktexlsr
+    echo "done."                                                                
+}
+
+
 enable_tex_font_maps() {
-  echo -n "Updating TeX filename database..."
-  mktexlsr
-  echo "done."
+  update_texlsr $1
 
-  echo -n "Updating TeX font map..."
+  echo -n "Updating TeX font map... "
   updmap-sys --quiet --enable Map=nectec.map
   updmap-sys --quiet --enable Map=nf.map
   updmap-sys --quiet --enable Map=tlwg.map
 }
 
 disable_tex_font_maps() {
-  echo -n "Updating TeX filename database..."
-  mktexlsr
-  echo "done."
+  update_texlsr $1
 
-  echo -n "Updating TeX font map..."
+  echo -n "Updating TeX font map... "
   # disable Thai font maps
   updmap-sys --quiet --syncwithtrees
   echo "done."