summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/lua2dox/install.bat
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/support/lua2dox/install.bat')
-rwxr-xr-xMaster/texmf-dist/doc/support/lua2dox/install.bat41
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/lua2dox/install.bat b/Master/texmf-dist/doc/support/lua2dox/install.bat
new file mode 100755
index 00000000000..55b67e4f360
--- /dev/null
+++ b/Master/texmf-dist/doc/support/lua2dox/install.bat
@@ -0,0 +1,41 @@
+@echo off
+
+ if [%1]==[-h] goto :help
+ if [%1]==[--help] goto :help
+
+ goto :init
+
+:help
+
+ echo Syntax:
+ echo install [^<dir^>]
+ echo.
+
+:init
+
+ rem Avoid clobbering anyone else's variables
+
+ setlocal
+
+ rem Safety precaution against awkward paths
+
+ cd /d "%~dp0"
+
+ rem Set the install location, using the same logic as the .sh file
+
+ set INSTALLDIR=%1
+ set DEFAULT_INSTALLDIR=%USERPROFILE%\bin
+
+ if [%INSTALLDIR%] == {] (
+ set INSTALLDIR=%DEFAULT_INSTALLDIR%
+ )
+
+ set APP_NAME=lua2dox_filter.bat
+
+ goto :install
+
+:install
+
+ echo Install to %INSTALLDIR%
+ copy /y %APP_NAME% %INSTALLDIR% > nul
+ echo Install done \ No newline at end of file