home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / SLAKWARE / T1 / MAKETAG.EZ < prev    next >
Text File  |  1997-04-19  |  4KB  |  122 lines

  1. #!/bin/sh
  2. add() {
  3.   for package in $* ; do
  4.     echo "$package: ADD" >> /tmp/SeTnewtag
  5.   done
  6. }
  7. skip() {
  8.   for package in $* ; do
  9.     echo "$package: SKP" >> /tmp/SeTnewtag
  10.   done
  11. }
  12. cat /dev/null > /tmp/SeTnewtag
  13. dialog --title "SELECTING BINARY/MACRO PACKAGES FROM SERIES T (teTeX)" \
  14.        --checklist "Use this menu to select the BINARY and MACRO packages you \
  15. wish to install for series T (The teTeX distribution). Use the \
  16. UP/DOWN keys to scroll through the list, and the SPACE key to toggle packages \
  17. on or off. RECOMMENDED and REQUIRED packages have been preselected. REQUIRED \
  18. packages have also been marked with a [*]. \
  19. Press ENTER when you are \
  20. done." 21 70 9 \
  21. "te-ams" "AMStex" "on" \
  22. "te-base" "teTeX base package *" "on" \
  23. "te-bin" "teTeX binaries *" "on" \
  24. "tm-lt" "Base LaTeX package *" "on" \
  25. "tm-bibt" "BibTeX: maintain bibliographies" "on" \
  26. "tm-eplai" "extended plain TeX" "on" \
  27. "tm-lxtra" "LaTeX extra packages" "on" \
  28. "tm-metap" "MetaPost" "off" \
  29. "tm-pictx" "PicTeX" "off" \
  30. "tm-pstr" "PS Tricks" "off" \
  31. "tm-tdraw" "TeXdraw" "on" \
  32. "tm-xypic" "XY-pic" "off" \
  33. "tb-trans" "transfig (used by xfig)" "off" \
  34. "tb-xfig" "drawing tool for LaTeX" "off" \
  35. 2> /tmp/SeTpkgs
  36. if [ $? = 1 -o $? = 255 ]; then
  37.  rm -f /tmp/SeTpkgs
  38.  > /tmp/SeTnewtag
  39.  for pkg in tb-trans tb-xfig td-bibt td-eplai td-fonts td-misc td-mkidx \
  40.   tf-sautr tm-bibt tm-eplai td-gnric tf-dc tm-metap tm-pictx tm-tdraw \
  41.   td-ltex1 td-metap tm-pstr td-ltex2 td-progs te-ams te-base1 te-base2 \
  42.   tm-lt te-bin1 tf-misc tm-xypic te-bin2 tm-lxtra tf-ps ; do
  43.   echo "$pkg: SKP" >> /tmp/SeTnewtag
  44.  done
  45.  exit
  46. fi
  47. cat /dev/null > /tmp/SeTnewtag
  48. if fgrep \"te-base\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  49.   add te-base1 te-base2
  50. else
  51.   skip te-base1 te-base2
  52. fi
  53. if fgrep \"te-bin\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  54.   add te-bin1 te-bin2
  55. else
  56.   skip te-bin1 te-bin2
  57. fi
  58. for PACKAGE in te-ams tm-lt tm-bibt tm-eplai tm-lxtra tm-metap tm-pictx \
  59. tm-pstr tm-tdraw tm-xypic tb-trans tb-xfig ; do
  60.  if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  61.   echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
  62.  else
  63.   echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
  64.  fi
  65. done
  66. rm -f /tmp/SeTpkgs
  67. dialog --title "SELECTING FONT PACKAGES FOR SERIES T (teTeX)" \
  68.        --checklist "Use this menu to select the packages containing \
  69. FONTS that you wish to install from series T. Use the \
  70. UP/DOWN keys to scroll through the list, and the SPACE key to toggle packages \
  71. on or off. RECOMMENDED packages are preselected. \
  72. Press ENTER when you are \
  73. done." 15 70 4 \
  74. "tf-dc" "DC fonts" "on" \
  75. "tf-misc" "Micellaneous fonts" "on" \
  76. "tf-ps" "PostScript fonts" "off" \
  77. "tf-sautr" "Sauter fonts" "on" \
  78. 2> /tmp/SeTpkgs
  79. if [ $? = 1 -o $? = 255 ]; then
  80.  rm -f /tmp/SeTpkgs
  81.  exit
  82. fi
  83. for PACKAGE in tf-dc tf-misc tf-ps tf-sautr ; do
  84.  if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  85.   echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
  86.  else
  87.   echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
  88.  fi
  89. done
  90. rm -f /tmp/SeTpkgs
  91. dialog --title "SELECTING DOCUMENTATION FOR SERIES T (teTeX)" \
  92.        --checklist "Use this menu to select the packages containing \
  93. DOCUMENTATION that you wish to install from series T. Use the \
  94. UP/DOWN keys to scroll through the list, and the SPACE key to toggle packages \
  95. on or off. \
  96. Press ENTER when you are \
  97. done." 20 70 10 \
  98. "td-bibt" "BibTeX docs" "off" \
  99. "td-eplai" "Extended plain TeX docs" "off" \
  100. "td-fonts" "Font package docs" "off" \
  101. "td-gnric" "docs for babel, texdraw, pstricks, xypic" "off" \
  102. "td-ltex1" "LaTeX docs, part one" "off" \
  103. "td-ltex2" "LaTeX docs, part two" "off" \
  104. "td-metap" "MetaPost docs" "off" \
  105. "td-misc" "general docs for TeX" "off" \
  106. "td-mkidx" "Makeindex docs" "off" \
  107. "td-progs" "Kpathsea and related programs docs" "off" \
  108. 2> /tmp/SeTpkgs
  109. if [ $? = 1 -o $? = 255 ]; then
  110.  rm -f /tmp/SeTpkgs
  111.  exit
  112. fi
  113. for PACKAGE in td-bibt td-eplai td-fonts td-gnric td-ltex1 td-ltex2 td-metap \
  114. td-misc td-mkidx td-progs ; do
  115.  if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  116.   echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
  117.  else
  118.   echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
  119.  fi
  120. done
  121. rm -f /tmp/SeTpkgs
  122.