w3 / build.bat

@echo off

set FALLBACKEMACSDIR=c:\emacs

REM This allows the user to specify the emacs root on the command
REM line.
set COMMANDLINEGIVEN=yes
if "%1" == "" set COMMANDLINEGIVEN=no
if "%COMMANDLINEGIVEN%" == "yes" set EMACSDIR=%1

REM If no emacs directory is set in the default environment, use our
REM fallback.
if "%EMACSDIR%" == "" echo EMACSDIR not set!  Using %FALLBACKEMACSDIR% as a default...
if "%EMACSDIR%" == "" set EMACSDIR=%FALLBACKEMACSDIR%

set EMACS=%EMACSDIR%\bin\emacs.exe
set WIDGETDIR=%EMACSDIR%\lisp
set GNUSDIR=%EMACSDIR%\lisp

cd lisp
copy w3-cfg.nt w3-cfg.el
%EMACS% -batch -q -l ./docomp.el -f emacs-batch-build-autoloads . auto-autoloads.el
%EMACS% -batch -q -l ./docomp.el -f emacs-batch-build-custom-load .
%EMACS% -batch -q -l ./docomp.el -f compile-it
cd ..

cd texi
%EMACS% -batch -q -no-site-file w3-faq.txi -l texinfmt -f texinfo-format-buffer -f save-buffer
%EMACS% -batch -q -no-site-file w3.txi -l texinfmt -f texinfo-format-buffer -f save-buffer
cd ..
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.