texlive-language.script 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. LANGUAGE_DAT="etc/texmf/tex/generic/config/language.dat"
  3. LANGUAGE_DAT_LUA="etc/texmf/tex/generic/config/language.dat.lua"
  4. LANGUAGE_DEF="etc/texmf/tex/generic/config/language.def"
  5. shopt -s nullglob
  6. cp usr/share/texmf-dist/tex/generic/config/language.us $LANGUAGE_DAT
  7. for file in var/lib/texmf/arch/installedpkgs/*.dat; do
  8. echo >> $LANGUAGE_DAT
  9. echo "% $file" >> $LANGUAGE_DAT
  10. cat $file >> $LANGUAGE_DAT
  11. done
  12. cp usr/share/texmf-dist/tex/generic/config/language.us.lua $LANGUAGE_DAT_LUA
  13. for file in var/lib/texmf/arch/installedpkgs/*.dat.lua; do
  14. echo >> $LANGUAGE_DAT_LUA
  15. echo "-- $file" >> $LANGUAGE_DAT_LUA
  16. cat $file >> $LANGUAGE_DAT_LUA
  17. done
  18. echo "}" >> $LANGUAGE_DAT_LUA
  19. cp usr/share/texmf-dist/tex/generic/config/language.us.def $LANGUAGE_DEF
  20. for file in var/lib/texmf/arch/installedpkgs/*.def; do
  21. echo >> $LANGUAGE_DEF
  22. echo "% $file" >> $LANGUAGE_DEF
  23. cat $file >> $LANGUAGE_DEF
  24. done
  25. echo "\uselanguage {USenglish} %%% This MUST be the last line of the file." >> $LANGUAGE_DEF