⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makedocs.bat

📁 开源的nasm编译器源码,研究编译器原理很有帮且
💻 BAT
字号:
@echo offif "%1"=="clean" goto makecleanif "%1"=="CLEAN" goto makecleanif "%1"=="spotless" goto spotlessif "%1"=="SPOTLESS" goto spotlessif "%1"=="install" goto installif "%1"=="INSTALL" goto installclsecho.echo.echo.echo    Usage:echo.echo        makedocs - no parameters - makes all Docsecho        makedocs install - installs already made docs in subdirectoriesecho        makedocs clean - removes docs from current directoryecho        makedocs spotless - removes all - including default install dirsecho.echo.echo.echo.echo        Makedocs(.bat), with no parameters will create Nasm Documentationecho        in several formats: plain ascii text, ps, html, rtf, Windows helpecho        format, and if you've got an "info" system installed, info format.echo.echo.echo                This requires Perl, and almost 4MB disk space.echo.echo.choice "                     Proceed with making docs? "if errorlevel 2 goto exit:makeallecho.echo.echo                        This takes a while. Stretch!echo.echo.perl rdsrc.pl<nasmdoc.srcecho.echo.choice "                       Make *info* files? "if errorlevel 2 goto noinfo:makeinfoecho.echo.makeinfo nasmdoc.tex:noinfo:installif not exist nasmdoc.txt goto nofilesif not exist nasmdoc0.htm goto nofilesif not exist nasmdo10.htm goto nofilesif not exist nasmdoc.hpj goto nofilesif not exist nasmdoc.rtf goto nofilesif not exist nasmdoc.ps goto nofilesif not exist nasmdoc.tex goto nofilesgoto gotfiles:nofilesecho.echo.echo.echo.echo                       Alert!      Files missing!echo.echo.choice "               Would you like to make them now? "if errorlevel 2 goto exitgoto makeall:gotfiles:: get current pathset oldprompt=%prompt%echo @prompt set nasdoc=$p>temp1.batcommand /c temp1.bat>temp2.batcall temp2del temp1.batdel temp2.batset prompt=%oldprompt%set oldprompt=echo.echo.echo.echo.echo        Current Directory is %nasdoc%echo        Nasm Documentation will be installed under thisecho        as %nasdoc%\text\nasmdoc.txt, etc.echo.echo.choice "                   Change this directory? "if errorlevel 2 goto dirokecho.echo.echo.echo.echo      Directory *above* the directory you name (at least) should exist.echo      Nasm documentation will be installed *under* the directory youecho      name. E.G. \docs\nasm\html, etc. No trailing backslash!echo.echo.echo                Enter new name for base directory:set input=fc con nul /lb1 /n|date|find "1:">magic.batecho set input=%%5>enter.batcall magicset nasdoc=%input%del magic.batdel enter.batset input=echo.echo.md %nasdoc%echo.echo.choice "  Install Text docs in %nasdoc%\text ? "if errorlevel 2 goto notextmd %nasdoc%\textcopy nasmdoc.txt %nasdoc%\text:notextchoice "  Install Html docs in %nasdoc%\html ? "if errorlevel 2 goto nohtmlmd %nasdoc%\htmlcopy *.htm %nasdoc%\html:nohtmlchoice "  Install Info docs in %nasdoc%\info ? "if errorlevel 2 goto noinfodocsif not exist nasm.inf goto inofilesif not exist nasm.i9 goto inofilesgoto gotifiles:inofilesecho.echo.echo                       Alert!      Files missing!echo.echo.choice "               Would you like to make them now? "if errorlevel 2 goto noinfodocsif not exist nasmdoc.tex goto makeallgoto makeinfo:gotifilesmd %nasdoc%\infocopy nasm.i* %nasdoc%\info:noinfodocschoice "  Install Winhelp docs in %nasdoc%\winhelp ? "if errorlevel 2 goto nowinhelpmd %nasdoc%\winhelpcopy nasmdoc.rtf %nasdoc%\winhelpcopy nasmdoc.hpj %nasdoc%\winhelp:nowinhelpchoice "  Install Postscript docs in %nasdoc%\ps ? "if errorlevel 2 goto nopsmd %nasdoc%\pscopy nasmdoc.ps %nasdoc%\ps:nopsgoto cleanup:dirokchoice "  Install Text docs in .\text ? "if errorlevel 2 goto notext2md textcopy nasmdoc.txt text:notext2choice "  Install Html docs in .\html ? "if errorlevel 2 goto nohtml2md htmlcopy *.htm html:nohtml2choice "  Install Info docs in .\info ? "if errorlevel 2 goto nid2if not exist nasm.inf goto inof2if not exist nasm.i9 goto inof2goto gifiles2:inof2echo.echo.echo                       Alert!      Files missing!echo.echo.choice "               Would you like to make them now? "if errorlevel 2 goto nid2if not exist nasmdoc.tex goto makeallgoto makeinfo:gifiles2md infocopy nasm.i* info:nid2choice "  Install Winhelp docs in .\winhelp ? "if errorlevel 2 goto nwhelp2md winhelpcopy nasmdoc.rtf winhelpcopy nasmdoc.hpj winhelp:nwhelp2choice "  Install Postscript docs in .\ps ? "if errorlevel 2 goto nops2md pscopy nasmdoc.ps ps:nops2:cleanupset nasdoc=echo.echo.echo.echo.choice "        Remove all files created, but not installed?"if not errorlevel 2 goto makecleangoto exit:spotlessdeltree /y textdeltree /y htmldeltree /y infodeltree /y winhelpdeltree /y ps:makecleandel *.htmdel *.rtfdel *.hpjdel *.txtdel *.texdel *.psdel nasm.i*:exit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -