blob: 55b67e4f360174c29e24fb7c8d251793b19cff3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
|