Debian Codegraph @

texmf-dist/doc/latex/barcodes/install.bat

raw
1 @echo off
2 echo off
3 rem Installation of the barcode fonts
4 rem willadt 1999-05-29
5 rem you have to set the following variable
6 rem according to your system
7 set TEXMF=C:\TEXMF
8 rem further down, you need not change anything
9 rem *******************************************
10 rem under your TEXMF directory, there should be
11 rem /fonts/source/public
12 rem /fonts/tfm/public
13 rem /fonts/vf/public
14 rem /tex/generic/misc
15 rem /tex/latex/misc
16 rem plain TeX should be run by 'tex filename'
17 rem latex2e should be run by 'latex filename'
18 rem vptovf should be run by 'vptovf x y z'
19 cls
20 IF NOT %1a==a SET TEXMF=%1
21 echo We are going to install the barcode fonts
22 echo to the directory branch %TEXMF%
23 echo If you don't want that,
24 echo or if this is not correct, press CTRL-BREAK now,
25 echo else
26 pause
27 echo Ok, we're going...
28 echo *****************************************************
29 echo checking/making directories..........................
30 echo ...VF dir
31 if not exist %TEXMF%\fonts\vf\public\NUL md %TEXMF%\fonts\vf\public
32 if not exist %TEXMF%\fonts\vf\public\NUL goto error
33 echo ...MF dir
34 if not exist %TEXMF%\fonts\source\public\NUL md %TEXMF%\fonts\source\public
35 if not exist %TEXMF%\fonts\source\public\misc\NUL md %TEXMF%\fonts\source\public\misc
36 if not exist %TEXMF%\fonts\source\public\misc\NUL goto error
37 echo ...TFM dir
38 if not exist %TEXMF%\fonts\tfm\public\NUL md %TEXMF%\fonts\tfm\public
39 if not exist %TEXMF%\fonts\tfm\public\misc\NUL md %TEXMF%\fonts\tfm\public\misc
40 if not exist %TEXMF%\fonts\tfm\public\misc\NUL goto error
41 echo ...sty dir
42 if not exist %TEXMF%\tex\latex\misc\NUL md %TEXMF%\tex\latex\misc
43 if not exist %TEXMF%\tex\latex\misc\NUL goto error
44 echo ...tex (generic) dir
45 if not exist %TEXMF%\tex\generic\misc\NUL md %TEXMF%\tex\generic\misc
46 if not exist %TEXMF%\tex\generic\misc\NUL goto error
47 echo *****************************************************
48 echo Unpacking............................................
49 call tex barcodes.ins
50 rem *******************
51 rem * at first the vf's
52 echo *****************************************************
53 echo Making and moving VF files...........................
54 FOR %%a IN (wlcdb wlcf39 wlitf) DO vptovf %%a.vpl %%a.vf %%a.tfm
55 copy *.vf %TEXMF%\fonts\vf\public
56 del wl*.vf
57 rem *******************
58 rem * then the mf's
59 echo *****************************************************
60 echo Moving MF files......................................
61 copy *.mf %TEXMF%\fonts\source\public\misc
62 rem *******************
63 rem * then the tfm's
64 echo *****************************************************
65 echo Moving tfm files.....................................
66 copy *.tfm %TEXMF%\fonts\tfm\public\misc
67 rem *******************
68 rem * TeX files
69 echo *****************************************************
70 echo Moving .sty files....................................
71 copy *.sty %TEXMF%\tex\latex\misc
72 rem *******************
73 rem * TeX files
74 echo *****************************************************
75 echo Moving TeX files.....................................
76 copy code39.tex %TEXMF%\tex\generic\misc
77 rem *******************
78 rem * documentation
79 echo *****************************************************
80 echo Now running LaTeX on the documentation...............
81 call latex bcfaq
82 call latex bcfaq
83 call latex eandoc
84 call latex eandoc
85 echo *****************************************************
86 echo now comes the hardest part:
87 echo running the examples file through TeX................
88 call tex examples
89 goto ende
90 :error
91 echo *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
92 echo There was an error, sorry.
93 echo Please install by hand.
94 echo *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
95 goto schluss
96 :ende
97 cls
98 echo *****************************************************
99 echo We're done. Have fun.
100 echo You should update your filename database, by the way.
101 echo and you will perhaps want to install codean.pl.
102 echo If you do not want to have temporary files removed,
103 echo press CTRL-BREAK now!
104 echo else
105 pause
106 for %%a in (*.log wl*.vf wl*.tfm) do del %%a
107 echo perhaps you can do more cleanup, I'm really done now.
108 :schluss