home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / os2tex.zip / disk4.zip / gothic.cmd < prev    next >
OS/2 REXX Batch file  |  1996-06-25  |  5KB  |  309 lines

  1. /* Rexx-Script zur Erzeugung der OS2TeX-Objekte */
  2.  
  3.  
  4.  
  5.  
  6.  
  7. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  8. call SysLoadFuncs
  9.  
  10.  
  11. parse arg language target
  12.  
  13.  
  14. if language = '' then do
  15.    exit 1
  16. end
  17.  
  18.  
  19.  
  20. if target = '' then do
  21.    exit 1
  22. end
  23.  
  24.  
  25.  
  26. /* SysDestroyObject('<TEX_SHELL_FOLDER>') */
  27.  
  28.  
  29.  
  30.  
  31. if language = '049' then do
  32.  
  33.  
  34.  
  35. /* OS2TeX Ordner erzeugen */
  36.  
  37.  
  38.  
  39. say "Erzeuge Ordner OS/2-TeX"
  40.  
  41.  
  42. classname = 'WPFolder'
  43. title     = 'OS/2-TeX'
  44. location  = '<WP_DESKTOP>'
  45. setup     = 'ICONFILE='target'\bin\folder.ico;OBJECTID=<OS2TEX_FOLDER>;ICONVIEW=NONFLOWED;OPEN=ICON'
  46. duplicate = 'update'
  47.  
  48. rc = SysCreateObject(classname,title,location,setup,duplicate)
  49.  
  50. if rc = 0 then do 
  51.    exit 1
  52. end
  53.  
  54.  
  55.  
  56.  
  57. /* Dokumentations Ordner */
  58.  
  59.  
  60.  
  61. say "Erzeuge Ordner Dokumentation"
  62.  
  63.  
  64.  
  65. classname = 'WPFolder'
  66. title     = 'Dokumentation'
  67. location  = '<OS2TEX_FOLDER>'
  68. setup     = 'OBJECTID=<OS2TEX_DOC_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  69. duplicate = 'update'
  70.  
  71. rc = SysCreateObject(classname,title,location,setup,duplicate)
  72.  
  73. if rc = 0 then do 
  74.    exit 1
  75. end
  76.  
  77.  
  78.  
  79.  
  80. /* Fonts Ordner erzeugen */
  81.  
  82.  
  83. say "Erzeuge Ordner Schriften"
  84.  
  85.  
  86. classname = 'WPFolder'
  87. title     = 'Schriften'
  88. location  = '<OS2TEX_DOC_FOLDER>'
  89. setup     = 'OBJECTID=<OS2TEX_FONTS_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  90. duplicate = 'update'
  91.  
  92. rc = SysCreateObject(classname,title,location,setup,duplicate)
  93.  
  94. if rc = 0 then do 
  95.    exit 1
  96. end
  97.  
  98.  
  99.  
  100.  
  101. /* Package Ordner erzeugen */
  102.  
  103.  
  104.  
  105. say "Erzeuge Ordner Zusatzpakete/Styles"
  106.  
  107.  
  108. classname = 'WPFolder'
  109. title     = 'Zusatzpakete/Styles'
  110. location  = '<OS2TEX_DOC_FOLDER>'
  111. setup     = 'OBJECTID=<OS2TEX_PACKAGES_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  112. duplicate = 'update'
  113.  
  114. rc = SysCreateObject(classname,title,location,setup,duplicate)
  115.  
  116. if rc = 0 then do 
  117.    exit 1
  118. end
  119.  
  120.  
  121.  
  122. /* oldgerm.sty im Style Ordner */
  123.  
  124.  
  125.  
  126. say "Erzeuge Objekt oldgerm"
  127.  
  128.  
  129. classname = 'WPProgram'
  130. title     = 'oldgerm [Frank Mittelbach]'
  131. location  = '<OS2TEX_PACKAGES_FOLDER>'
  132. setup     = 'EXENAME='target'\bin\dvi.exe;PROGTYPE=PM;STARTUPDIR='target'\bin;OBJECTID=<OS2TEX_OLDGERM>;PARAMETERS='target'\doc\oldgerm.dvi'
  133. duplicate = 'replace'
  134.  
  135. rc = SysCreateObject(classname,title,location,setup,duplicate)
  136.  
  137. if rc = 0 then do 
  138.    exit 1
  139. end
  140.  
  141.  
  142.  
  143.  
  144. /* oldgerm.sty im Fonts Ordner */
  145.  
  146.  
  147.  
  148. say "Erzeuge Objekt Altdeutsche Schriften"
  149.  
  150. classname = 'WPProgram'
  151. title     = 'Altdeutsche Schriften [Yannis Haralambous]'
  152. location  = '<OS2TEX_FONTS_FOLDER>'
  153. setup     = 'EXENAME='target'\bin\dvi.exe;PROGTYPE=PM;STARTUPDIR='target'\bin;OBJECTID=<OS2TEX_OLDGERM_FONTS>;PARAMETERS='target'\doc\oldgerm.dvi'
  154. duplicate = 'replace'
  155.  
  156. rc = SysCreateObject(classname,title,location,setup,duplicate)
  157.  
  158. if rc = 0 then do 
  159.    exit 1
  160. end
  161.  
  162.  
  163.  
  164. end
  165.  
  166.  
  167.  
  168.  
  169.  
  170. if language = '044' then do
  171.  
  172.  
  173.  
  174. cf = 'Creating folder'
  175. co = 'Creating object'
  176.  
  177.  
  178.  
  179. /* OS2TeX Ordner erzeugen */
  180.  
  181.  
  182. classname = 'WPFolder'
  183. title     = 'OS/2-TeX'
  184. location  = '<WP_DESKTOP>'
  185. setup     = 'ICONFILE='target'\bin\folder.ico;OBJECTID=<OS2TEX_FOLDER>;ICONVIEW=NONFLOWED;OPEN=ICON'
  186. duplicate = 'update'
  187.  
  188.  
  189. say cf title
  190.  
  191. rc = SysCreateObject(classname,title,location,setup,duplicate)
  192.  
  193. if rc = 0 then do 
  194.    exit 1
  195. end
  196.  
  197.  
  198.  
  199.  
  200. /* Dokumentations Ordner */
  201.  
  202.  
  203. classname = 'WPFolder'
  204. title     = 'Documentation'
  205. location  = '<OS2TEX_FOLDER>'
  206. setup     = 'OBJECTID=<OS2TEX_DOC_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  207. duplicate = 'update'
  208.  
  209. say cf title
  210.  
  211. rc = SysCreateObject(classname,title,location,setup,duplicate)
  212.  
  213. if rc = 0 then do 
  214.    exit 1
  215. end
  216.  
  217.  
  218.  
  219.  
  220. /* Fonts Ordner erzeugen */
  221.  
  222.  
  223.  
  224. classname = 'WPFolder'
  225. title     = 'Fonts'
  226. location  = '<OS2TEX_DOC_FOLDER>'
  227. setup     = 'OBJECTID=<OS2TEX_FONTS_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  228. duplicate = 'update'
  229.  
  230. say cf title
  231.  
  232.  
  233. rc = SysCreateObject(classname,title,location,setup,duplicate)
  234.  
  235. if rc = 0 then do 
  236.    exit 1
  237. end
  238.  
  239.  
  240.  
  241.  
  242. /* Package Ordner erzeugen */
  243.  
  244.  
  245.  
  246. classname = 'WPFolder'
  247. title     = 'Packages/Styles'
  248. location  = '<OS2TEX_DOC_FOLDER>'
  249. setup     = 'OBJECTID=<OS2TEX_PACKAGES_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  250. duplicate = 'update'
  251.  
  252. say cf title
  253.  
  254. rc = SysCreateObject(classname,title,location,setup,duplicate)
  255.  
  256. if rc = 0 then do 
  257.    exit 1
  258. end
  259.  
  260.  
  261.  
  262. /* oldgerm.sty im Style Ordner */
  263.  
  264.  
  265. classname = 'WPProgram'
  266. title     = 'oldgerm [Frank Mittelbach]'
  267. location  = '<OS2TEX_PACKAGES_FOLDER>'
  268. setup     = 'EXENAME='target'\bin\dvi.exe;PROGTYPE=PM;STARTUPDIR='target'\bin;OBJECTID=<OS2TEX_OLDGERM>;PARAMETERS=-044 'target'\doc\oldgerm.dvi'
  269. duplicate = 'replace'
  270.  
  271. say co title
  272.  
  273. rc = SysCreateObject(classname,title,location,setup,duplicate)
  274.  
  275. if rc = 0 then do 
  276.    exit 1
  277. end
  278.  
  279.  
  280.  
  281.  
  282. /* oldgerm.sty im Fonts Ordner */
  283.  
  284.  
  285. classname = 'WPProgram'
  286. title     = 'Old german fonts [Yannis Haralambous]'
  287. location  = '<OS2TEX_FONTS_FOLDER>'
  288. setup     = 'EXENAME='target'\bin\dvi.exe;PROGTYPE=PM;STARTUPDIR='target'\bin;OBJECTID=<OS2TEX_OLDGERM_FONTS>;PARAMETERS=-044 'target'\doc\oldgerm.dvi'
  289. duplicate = 'replace'
  290.  
  291. say co title
  292.  
  293. rc = SysCreateObject(classname,title,location,setup,duplicate)
  294.  
  295. if rc = 0 then do 
  296.    exit 1
  297. end
  298.  
  299.  
  300.  
  301.  
  302. end
  303.  
  304.  
  305. exit 0
  306.  
  307.  
  308.  
  309.