From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/disser/nomake.cmd | 110 +++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 macros/latex/contrib/disser/nomake.cmd (limited to 'macros/latex/contrib/disser/nomake.cmd') diff --git a/macros/latex/contrib/disser/nomake.cmd b/macros/latex/contrib/disser/nomake.cmd new file mode 100644 index 0000000000..b5626f2c0c --- /dev/null +++ b/macros/latex/contrib/disser/nomake.cmd @@ -0,0 +1,110 @@ +@echo off + +rem nomake script for disser package +rem Author: Stanislav Kruchinin + +if "%CMDEXTVERSION%"=="" ( + echo This script requires command interpreter from Windows 2000 or above. + goto :eof +) + +setlocal enabledelayedexpansion + +set target=disser + +if "!ver!"=="" set ver=1.5.0 +set git=git +set archext=zip +set archive=%target%-!ver!.%archext% +set excludefiles=.gitignore +set tdsdir=..\%target%-tds +set tdsarchive=%target%-!ver!.tds.%archext% + + +if "%1"=="" ( + call :package + call :doc +) else ( + for %%f in (%*) do call :%%f +) + +exit /b + +:templates + cd templates & call nomake & cd .. + cd templates-utf8 & call nomake & cd .. +goto :eof + +:all + call :default + call :templates +goto :eof + +:package + cd src & call nomake & cd .. +goto :eof + +:doc + cd src & call nomake doc & cd .. +goto :eof + +:clean + cd src & call nomake clean & cd .. + cd templates & call nomake clean & cd .. + cd templates-utf8 & call nomake clean & cd .. +goto :eof + +:install + cd src & call nomake install & cd .. + cd templates & call nomake install & cd .. + cd templates-utf8 & call nomake install & cd .. +goto :eof + +:reinstall + cd src & call nomake reinstall & cd .. + cd templates & call nomake reinstall & cd .. + cd templates-utf8 & call nomake reinstall & cd .. +goto :eof + +:uninstall + cd src & call nomake uninstall & cd .. + cd templates & call nomake uninstall & cd .. + cd templates-utf8 & call nomake uninstall & cd .. +goto :eof + +:srcdist + if exist %archive% del /q %archive% + %git% archive --format=%archext% --output=%archive% -9 HEAD + 7z d %archive% %excludefiles% +goto :eof + +:tds + if exist %tdsarchive% del /q %tdsarchive% + if not exist %tdsdir% ( + mkdir "%tdsdir%" + ) else ( + rmdir /q /s "%tdsdir%" + ) + set destdir=..\%tdsdir% + call :install + cd %tdsdir%\bibtex\bst\disser + flip -ub *.bst + cd ..\..\..\tex\latex\disser + flip -ub *.cls *.rtx + cd ..\..\..\..\disser + 7z a -t%archext% -mx=9 %tdsarchive% %tdsdir%\* +goto :eof + +:help + echo all build classes, documentation and templates + echo clean remove output files + echo doc build DVI and PDF versions of documentation + echo help show description of targets + echo install install package and documentation + echo package ^(default^) build package and documentation + echo reinstall reinstall package and documentation + echo srcdist create source distribution + echo tds create TDS archive + echo templates build all templates + echo uninstall uninstall package and documentation +goto :eof -- cgit v1.2.3