diff options
author | Karl Berry <karl@freefriends.org> | 2013-02-08 00:38:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-02-08 00:38:37 +0000 |
commit | 532e95c1171566e596e733b2f12b60263d3773db (patch) | |
tree | a28c86920edec0518ca9d924a4dbe993099a0502 /Master/texmf-dist/doc/support/lua2dox/install.bat | |
parent | 26d5dc00f5d6880985f5ae779b786f5ea001bb2f (diff) |
lua2dox 0.2 (7feb13)
git-svn-id: svn://tug.org/texlive/trunk@29053 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/lua2dox/install.bat')
-rwxr-xr-x | Master/texmf-dist/doc/support/lua2dox/install.bat | 41 |
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 |