diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2013-04-09 13:11:55 +0200 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2013-04-09 13:11:55 +0200 |
commit | b974f6d3841b24596c4cbc2c27f9f6572afe52d5 (patch) | |
tree | 9226304a5d8ac0a756e85b6316219cd690ab3518 /win32/bin/luarocksw.bat | |
parent | baef212bf582e59421cca37e1e11167dc33f974a (diff) | |
download | luarocks-b974f6d3841b24596c4cbc2c27f9f6572afe52d5.tar.gz luarocks-b974f6d3841b24596c4cbc2c27f9f6572afe52d5.tar.bz2 luarocks-b974f6d3841b24596c4cbc2c27f9f6572afe52d5.zip |
installer adds information for the registry, including icon and actions for .rockspec files when /R argument is provided.
includes the new luarocksw.bat batch file
also: made the /P argument of the installer required
Diffstat (limited to '')
-rw-r--r-- | win32/bin/luarocksw.bat | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/win32/bin/luarocksw.bat b/win32/bin/luarocksw.bat new file mode 100644 index 00000000..a0144c44 --- /dev/null +++ b/win32/bin/luarocksw.bat | |||
@@ -0,0 +1,48 @@ | |||
1 | @echo off | ||
2 | setlocal | ||
3 | SET MYPATH=%~dp0 | ||
4 | |||
5 | |||
6 | ECHO Same as 'luarocks' command, except this | ||
7 | ECHO command will pause after completion, allowing for | ||
8 | ECHO examination of output. | ||
9 | ECHO | ||
10 | ECHO For LuaRocks help use: | ||
11 | ECHO LUAROCKS HELP | ||
12 | ECHO | ||
13 | ECHO OPTIONS specific for LUAROCKSW: | ||
14 | ECHO REMOVEALL is a command specific to this batch file | ||
15 | ECHO the option takes a FULL ROCKSPEC filename and then | ||
16 | ECHO it will strip path, version and extension info from | ||
17 | ECHO it before executing the LUAROCKS REMOVE command | ||
18 | ECHO Example: | ||
19 | ECHO luarocksw remove "c:\somedir\modulename-1.0-1.rockspec" | ||
20 | ECHO will execute: | ||
21 | ECHO luarocks remove "c:\somedir\modulename-1.0-1.rockspec" | ||
22 | ECHO and will only remove the specific version 1.0 from the | ||
23 | ECHO system. | ||
24 | ECHO luarocksw removeall "c:\somedir\modulename-1.0-1.rockspec" | ||
25 | ECHO will execute: | ||
26 | ECHO luarocks remove modulename | ||
27 | ECHO and will remove all versions of this package | ||
28 | |||
29 | |||
30 | |||
31 | REM if REMOVEALL command then info must be stripped from the parameter | ||
32 | if [%1]==[removeall] goto REMOVEALL | ||
33 | |||
34 | REM execute LuaRocks and wait for results | ||
35 | echo executing: luarocks %* | ||
36 | call %MYPATH%luarocks %* | ||
37 | pause | ||
38 | goto END | ||
39 | |||
40 | :REMOVEALL | ||
41 | for /f "delims=-" %%a in ("%~n2") do ( | ||
42 | echo executing: luarocks remove %%a | ||
43 | %MYPATH%luarocks remove "%%a" | ||
44 | pause | ||
45 | goto END | ||
46 | ) | ||
47 | |||
48 | :END \ No newline at end of file | ||