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!
43 perl rdsrc.pl<nasmdoc.src
46 choice " Make *info* files? "
47 if errorlevel 2 goto noinfo
57 if not exist nasmdoc.txt goto nofiles
58 if not exist nasmdoc0.htm goto nofiles
59 if not exist nasmdo10.htm goto nofiles
60 if not exist nasmdoc.hpj goto nofiles
61 if not exist nasmdoc.rtf goto nofiles
62 if not exist nasmdoc.ps goto nofiles
63 if not exist nasmdoc.tex goto nofiles
70 echo Alert! Files missing!
73 choice " Would you like to make them now? "
74 if errorlevel 2 goto exit
81 set oldprompt=%prompt%
82 echo @prompt set nasdoc=$p>temp1.bat
83 command /c temp1.bat>temp2.bat
87 set prompt=%oldprompt%
94 echo Current Directory is %nasdoc%
95 echo Nasm Documentation will be installed under this
96 echo as %nasdoc%\text\nasmdoc.txt, etc.
99 choice " Change this directory? "
100 if errorlevel 2 goto dirok
106 echo Directory *above* the directory you name (at least) should exist.
107 echo Nasm documentation will be installed *under* the directory you
108 echo name. E.G. \docs\nasm\html, etc. No trailing backslash!
112 echo Enter new name for base directory:
114 fc con nul /lb1 /n|date|find "1:">magic.bat
115 echo set input=%%5>enter.bat
128 choice " Install Text docs in %nasdoc%\text ? "
129 if errorlevel 2 goto notext
131 copy nasmdoc.txt %nasdoc%\text
134 choice " Install Html docs in %nasdoc%\html ? "
135 if errorlevel 2 goto nohtml
137 copy *.htm %nasdoc%\html
140 choice " Install Info docs in %nasdoc%\info ? "
141 if errorlevel 2 goto noinfodocs
142 if not exist nasm.inf goto inofiles
143 if not exist nasm.i9 goto inofiles
148 echo Alert! Files missing!
151 choice " Would you like to make them now? "
152 if errorlevel 2 goto noinfodocs
153 if not exist nasmdoc.tex goto makeall
159 copy nasm.i* %nasdoc%\info
162 choice " Install Winhelp docs in %nasdoc%\winhelp ? "
163 if errorlevel 2 goto nowinhelp
165 copy nasmdoc.rtf %nasdoc%\winhelp
166 copy nasmdoc.hpj %nasdoc%\winhelp
169 choice " Install Postscript docs in %nasdoc%\ps ? "
170 if errorlevel 2 goto nops
172 copy nasmdoc.ps %nasdoc%\ps
178 choice " Install Text docs in .\text ? "
179 if errorlevel 2 goto notext2
181 copy nasmdoc.txt text
184 choice " Install Html docs in .\html ? "
185 if errorlevel 2 goto nohtml2
190 choice " Install Info docs in .\info ? "
191 if errorlevel 2 goto nid2
193 if not exist nasm.inf goto inof2
194 if not exist nasm.i9 goto inof2
199 echo Alert! Files missing!
202 choice " Would you like to make them now? "
203 if errorlevel 2 goto nid2
204 if not exist nasmdoc.tex goto makeall
213 choice " Install Winhelp docs in .\winhelp ? "
214 if errorlevel 2 goto nwhelp2
216 copy nasmdoc.rtf winhelp
217 copy nasmdoc.hpj winhelp
220 choice " Install Postscript docs in .\ps ? "
221 if errorlevel 2 goto nops2
234 choice " Remove all files created, but not installed?"
235 if not errorlevel 2 goto makeclean