2 if "%1"=="clean" goto makeclean
3 if "%1"=="CLEAN" goto makeclean
4 if "%1"=="spotless" goto spotless
5 if "%1"=="SPOTLESS" goto spotless
6 if "%1"=="install" goto install
7 if "%1"=="INSTALL" goto install
15 echo makedocs - no parameters - makes all Docs
16 echo makedocs install - installs already made docs in subdirectories
17 echo makedocs clean - removes docs from current directory
18 echo makedocs spotless - removes all - including default install dirs
23 echo Makedocs(.bat), with no parameters will create Nasm Documentation
24 echo in several formats: plain ascii text, ps, html, rtf, Windows help
25 echo format, and if you've got an "info" system installed, info format.
28 echo This requires Perl, and almost 4MB disk space.
31 choice " Proceed with making docs? "
32 if errorlevel 2 goto exit
38 echo This takes a while. Stretch!
42 perl rdsrc.pl<nasmdoc.src
45 choice " Make *info* files? "
46 if errorlevel 2 goto noinfo
56 if not exist nasmdoc.txt goto nofiles
57 if not exist nasmdoc0.htm goto nofiles
58 if not exist nasmdo10.htm goto nofiles
59 if not exist nasmdoc.hpj goto nofiles
60 if not exist nasmdoc.rtf goto nofiles
61 if not exist nasmdoc.ps goto nofiles
62 if not exist nasmdoc.tex goto nofiles
69 echo Alert! Files missing!
72 choice " Would you like to make them now? "
73 if errorlevel 2 goto exit
80 set oldprompt=%prompt%
81 echo @prompt set nasdoc=$p>temp1.bat
82 command /c temp1.bat>temp2.bat
86 set prompt=%oldprompt%
93 echo Current Directory is %nasdoc%
94 echo Nasm Documentation will be installed under this
95 echo as %nasdoc%\text\nasmdoc.txt, etc.
98 choice " Change this directory? "
99 if errorlevel 2 goto dirok
105 echo Directory *above* the directory you name (at least) should exist.
106 echo Nasm documentation will be installed *under* the directory you
107 echo name. E.G. \docs\nasm\html, etc. No trailing backslash!
111 echo Enter new name for base directory:
113 fc con nul /lb1 /n|date|find "1:">magic.bat
114 echo set input=%%5>enter.bat
127 choice " Install Text docs in %nasdoc%\text ? "
128 if errorlevel 2 goto notext
130 copy nasmdoc.txt %nasdoc%\text
133 choice " Install Html docs in %nasdoc%\html ? "
134 if errorlevel 2 goto nohtml
136 copy *.htm %nasdoc%\html
139 choice " Install Info docs in %nasdoc%\info ? "
140 if errorlevel 2 goto noinfodocs
141 if not exist nasm.inf goto inofiles
142 if not exist nasm.i9 goto inofiles
147 echo Alert! Files missing!
150 choice " Would you like to make them now? "
151 if errorlevel 2 goto noinfodocs
152 if not exist nasmdoc.tex goto makeall
158 copy nasm.i* %nasdoc%\info
161 choice " Install Winhelp docs in %nasdoc%\winhelp ? "
162 if errorlevel 2 goto nowinhelp
164 copy nasmdoc.rtf %nasdoc%\winhelp
165 copy nasmdoc.hpj %nasdoc%\winhelp
168 choice " Install Postscript docs in %nasdoc%\ps ? "
169 if errorlevel 2 goto nops
171 copy nasmdoc.ps %nasdoc%\ps
177 choice " Install Text docs in .\text ? "
178 if errorlevel 2 goto notext2
180 copy nasmdoc.txt text
183 choice " Install Html docs in .\html ? "
184 if errorlevel 2 goto nohtml2
189 choice " Install Info docs in .\info ? "
190 if errorlevel 2 goto nid2
192 if not exist nasm.inf goto inof2
193 if not exist nasm.i9 goto inof2
198 echo Alert! Files missing!
201 choice " Would you like to make them now? "
202 if errorlevel 2 goto nid2
203 if not exist nasmdoc.tex goto makeall
212 choice " Install Winhelp docs in .\winhelp ? "
213 if errorlevel 2 goto nwhelp2
215 copy nasmdoc.rtf winhelp
216 copy nasmdoc.hpj winhelp
219 choice " Install Postscript docs in .\ps ? "
220 if errorlevel 2 goto nops2
233 choice " Remove all files created, but not installed?"
234 if not errorlevel 2 goto makeclean