home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / os2tex.zip / disk4.zip / amslatex.cmd next >
OS/2 REXX Batch file  |  1996-06-25  |  7KB  |  391 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.  
  15. if language = '' then do
  16.    exit 1
  17. end
  18.  
  19.  
  20.  
  21.  
  22. if target = '' then do
  23.    exit 1
  24. end
  25.  
  26.  
  27.  
  28. /* SysDestroyObject('<TEX_SHELL_FOLDER>') */
  29.  
  30.  
  31.  
  32.  
  33.  
  34. if language = '049' then do
  35.  
  36.  
  37.  
  38. cf = 'Erzeuge Ornder'
  39. co = 'Erzeuge Objekt'
  40.  
  41.  
  42.  
  43. /* OS2TeX Ordner erzeugen */
  44.  
  45.  
  46. classname = 'WPFolder'
  47. title     = 'OS/2-TeX'
  48. location  = '<WP_DESKTOP>'
  49. setup     = 'ICONFILE='target'\bin\folder.ico;OBJECTID=<OS2TEX_FOLDER>;ICONVIEW=NONFLOWED;OPEN=ICON'
  50. duplicate = 'update'
  51.  
  52.  
  53.  
  54.  
  55. say cf title
  56.  
  57. rc = SysCreateObject(classname,title,location,setup,duplicate)
  58.  
  59. if rc = 0 then do 
  60.    exit 1
  61. end
  62.  
  63.  
  64.  
  65.  
  66. /* Dokumentations Ordner */
  67.  
  68.  
  69. classname = 'WPFolder'
  70. title     = 'Dokumentation'
  71. location  = '<OS2TEX_FOLDER>'
  72. setup     = 'OBJECTID=<OS2TEX_DOC_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  73. duplicate = 'update'
  74.  
  75. say cf title
  76.  
  77. rc = SysCreateObject(classname,title,location,setup,duplicate)
  78.  
  79. if rc = 0 then do 
  80.    exit 1
  81. end
  82.  
  83.  
  84.  
  85.  
  86. /* AMS-LaTeX Ordner erzeugen */
  87.  
  88.  
  89.  
  90. classname = 'WPFolder'
  91. title     = 'AMS-LaTeX'
  92. location  = '<OS2TEX_DOC_FOLDER>'
  93. setup     = 'OBJECTID=<OS2TEX_AMSLATEX_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  94. duplicate = 'update'
  95.  
  96. say cf title
  97.  
  98. rc = SysCreateObject(classname,title,location,setup,duplicate)
  99.  
  100. if rc = 0 then do 
  101.    exit 1
  102. end
  103.  
  104.  
  105.  
  106. /* AMS-LaTeX Dokumentation */
  107.  
  108. classname = 'WPProgram'
  109. title     = 'AMS-LaTeX Dokumentation'
  110. location  = '<OS2TEX_AMSLATEX_FOLDER>'
  111. setup     = 'EXENAME='target'\bin\dvi.exe;PROGTYPE=PM;STARTUPDIR='target'\bin;OBJECTID=<OS2TEX_AMSLDOC>;PARAMETERS='target'\doc\amsldoc.dvi'
  112. duplicate = 'replace'
  113.  
  114. say co title
  115.  
  116. rc = SysCreateObject(classname,title,location,setup,duplicate)
  117.  
  118. if rc = 0 then do 
  119.    exit 1
  120. end
  121.  
  122.  
  123.  
  124.  
  125. /* Fonts Ordner erzeugen */
  126.  
  127.  
  128.  
  129. classname = 'WPFolder'
  130. title     = 'Schriften'
  131. location  = '<OS2TEX_DOC_FOLDER>'
  132. setup     = 'OBJECTID=<OS2TEX_FONTS_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  133. duplicate = 'update'
  134.  
  135. say cf title
  136.  
  137. rc = SysCreateObject(classname,title,location,setup,duplicate)
  138.  
  139. if rc = 0 then do 
  140.    exit 1
  141. end
  142.  
  143.  
  144.  
  145. /* AMS-Fonts Dokumentation */
  146.  
  147. classname = 'WPProgram'
  148. title     = 'AMS-Fonts'
  149. location  = '<OS2TEX_FONTS_FOLDER>'
  150. setup     = 'EXENAME='target'\bin\dvi.exe;PROGTYPE=PM;STARTUPDIR='target'\bin;OBJECTID=<OS2TEX_AMSFNDOC>;PARAMETERS='target'\doc\amsfndoc.dvi'
  151. duplicate = 'replace'
  152.  
  153. say co title
  154.  
  155. rc = SysCreateObject(classname,title,location,setup,duplicate)
  156.  
  157. if rc = 0 then do 
  158.    exit 1
  159. end
  160.  
  161.  
  162.  
  163.  
  164. /* Package Ordner erzeugen */
  165.  
  166.  
  167.  
  168. classname = 'WPFolder'
  169. title     = 'Zusatzpakete/Styles'
  170. location  = '<OS2TEX_DOC_FOLDER>'
  171. setup     = 'OBJECTID=<OS2TEX_PACKAGES_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  172. duplicate = 'update'
  173.  
  174. say cf title
  175.  
  176. rc = SysCreateObject(classname,title,location,setup,duplicate)
  177.  
  178. if rc = 0 then do 
  179.    exit 1
  180. end
  181.  
  182.  
  183.  
  184.  
  185. /* euler.sty Dokumentation  ist im AMS-LaTeX Paket mit drinnen*/
  186.  
  187.  
  188. classname = 'WPProgram'
  189. title     = 'euler [Frank Jensen]'
  190. location  = '<OS2TEX_PACKAGES_FOLDER>'
  191. setup     = 'EXENAME='target'\bin\dvi.exe;PROGTYPE=PM;STARTUPDIR='target'\bin;OBJECTID=<OS2TEX_EULER>;PARAMETERS='target'\doc\euler.dvi'
  192. duplicate = 'replace'
  193.  
  194. say co title
  195.  
  196. rc = SysCreateObject(classname,title,location,setup,duplicate)
  197.  
  198. if rc = 0 then do 
  199.    exit 1
  200. end
  201.  
  202.  
  203.  
  204. end
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211. if language = '044' then do
  212.  
  213.  
  214. cf = 'Creating folder'
  215. co = 'Creating object'
  216.  
  217.  
  218. /* OS2TeX Ordner erzeugen */
  219.  
  220.  
  221. classname = 'WPFolder'
  222. title     = 'OS/2-TeX'
  223. location  = '<WP_DESKTOP>'
  224. setup     = 'ICONFILE='target'\bin\folder.ico;OBJECTID=<OS2TEX_FOLDER>;ICONVIEW=NONFLOWED;OPEN=ICON'
  225. duplicate = 'update'
  226.  
  227. say cf title
  228.  
  229. rc = SysCreateObject(classname,title,location,setup,duplicate)
  230.  
  231. if rc = 0 then do 
  232.    exit 1
  233. end
  234.  
  235.  
  236.  
  237.  
  238. /* Dokumentations Ordner */
  239.  
  240.  
  241. classname = 'WPFolder'
  242. title     = 'Documentation'
  243. location  = '<OS2TEX_FOLDER>'
  244. setup     = 'OBJECTID=<OS2TEX_DOC_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  245. duplicate = 'update'
  246.  
  247.  
  248.  
  249.  
  250. say cf title
  251.  
  252. rc = SysCreateObject(classname,title,location,setup,duplicate)
  253.  
  254. if rc = 0 then do 
  255.    exit 1
  256. end
  257.  
  258.  
  259.  
  260.  
  261. /* AMS-LaTeX Ordner erzeugen */
  262.  
  263.  
  264.  
  265. classname = 'WPFolder'
  266. title     = 'AMS-LaTeX'
  267. location  = '<OS2TEX_DOC_FOLDER>'
  268. setup     = 'OBJECTID=<OS2TEX_AMSLATEX_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  269. duplicate = 'update'
  270.  
  271. say cf 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. /* AMS-LaTeX Dokumentation */
  282.  
  283. classname = 'WPProgram'
  284. title     = 'AMS-LaTeX Documentation'
  285. location  = '<OS2TEX_AMSLATEX_FOLDER>'
  286. setup     = 'EXENAME='target'\bin\dvi.exe;PROGTYPE=PM;STARTUPDIR='target'\bin;OBJECTID=<OS2TEX_AMSLDOC>;PARAMETERS=-044 'target'\doc\amsldoc.dvi'
  287. duplicate = 'replace'
  288.  
  289. say co title
  290.  
  291. rc = SysCreateObject(classname,title,location,setup,duplicate)
  292.  
  293. if rc = 0 then do 
  294.    exit 1
  295. end
  296.  
  297.  
  298.  
  299.  
  300. /* Fonts Ordner erzeugen */
  301.  
  302.  
  303.  
  304. classname = 'WPFolder'
  305. title     = 'Fonts'
  306. location  = '<OS2TEX_DOC_FOLDER>'
  307. setup     = 'OBJECTID=<OS2TEX_FONTS_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  308. duplicate = 'update'
  309.  
  310. say cf title
  311.  
  312.  
  313. rc = SysCreateObject(classname,title,location,setup,duplicate)
  314.  
  315. if rc = 0 then do 
  316.    exit 1
  317. end
  318.  
  319.  
  320.  
  321. /* AMS-Fonts Dokumentation */
  322.  
  323. classname = 'WPProgram'
  324. title     = 'AMS-Fonts'
  325. location  = '<OS2TEX_FONTS_FOLDER>'
  326. setup     = 'EXENAME='target'\bin\dvi.exe;PROGTYPE=PM;STARTUPDIR='target'\bin;OBJECTID=<OS2TEX_AMSFNDOC>;PARAMETERS=-044 'target'\doc\amsfndoc.dvi'
  327. duplicate = 'replace'
  328.  
  329. say co title
  330.  
  331.  
  332. rc = SysCreateObject(classname,title,location,setup,duplicate)
  333.  
  334. if rc = 0 then do 
  335.    exit 1
  336. end
  337.  
  338.  
  339.  
  340.  
  341. /* Package Ordner erzeugen */
  342.  
  343.  
  344.  
  345. classname = 'WPFolder'
  346. title     = 'Packages/Styles'
  347. location  = '<OS2TEX_DOC_FOLDER>'
  348. setup     = 'OBJECTID=<OS2TEX_PACKAGES_FOLDER>;ICONVIEW=NONFLOWED,MINI;OPEN=ICON'
  349. duplicate = 'update'
  350.  
  351. say cf title
  352.  
  353.  
  354. rc = SysCreateObject(classname,title,location,setup,duplicate)
  355.  
  356. if rc = 0 then do 
  357.    exit 1
  358. end
  359.  
  360.  
  361.  
  362.  
  363. /* euler.sty Dokumentation  ist im AMS-LaTeX Paket mit drinnen*/
  364.  
  365.  
  366. classname = 'WPProgram'
  367. title     = 'euler [Frank Jensen]'
  368. location  = '<OS2TEX_PACKAGES_FOLDER>'
  369. setup     = 'EXENAME='target'\bin\dvi.exe;PROGTYPE=PM;STARTUPDIR='target'\bin;OBJECTID=<OS2TEX_EULER>;PARAMETERS=-044 'target'\doc\euler.dvi'
  370. duplicate = 'replace'
  371.  
  372. say co title
  373.  
  374.  
  375.  
  376. rc = SysCreateObject(classname,title,location,setup,duplicate)
  377.  
  378. if rc = 0 then do 
  379.    exit 1
  380. end
  381.  
  382.  
  383.  
  384. end
  385.  
  386.  
  387. exit 0
  388.  
  389.  
  390.  
  391.