summaryrefslogtreecommitdiff
path: root/web/lua2dox/install.bat
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/lua2dox/install.bat
Initial commit
Diffstat (limited to 'web/lua2dox/install.bat')
-rw-r--r--web/lua2dox/install.bat41
1 files changed, 41 insertions, 0 deletions
diff --git a/web/lua2dox/install.bat b/web/lua2dox/install.bat
new file mode 100644
index 0000000000..55b67e4f36
--- /dev/null
+++ b/web/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