diff options
-rw-r--r-- | install.bat | 25 | ||||
-rw-r--r-- | src/luarocks/cfg.lua | 2 | ||||
-rw-r--r-- | win32/LuaRocks.reg.lua (renamed from win32/bin/LuaRocks.reg.lua) | 0 | ||||
-rw-r--r-- | win32/LuaRocks.reg.template (renamed from win32/bin/LuaRocks.reg.template) | 0 | ||||
-rw-r--r-- | win32/lua.ico (renamed from win32/bin/lua.ico) | bin | 22486 -> 22486 bytes | |||
-rw-r--r-- | win32/luarocksw.bat (renamed from win32/bin/luarocksw.bat) | 0 | ||||
-rw-r--r-- | win32/pe-parser.lua (renamed from win32/bin/pe-parser.lua) | 0 | ||||
-rw-r--r-- | win32/rclauncher.c (renamed from win32/bin/rclauncher.c) | 0 | ||||
-rw-r--r-- | win32/tools/7z.dll (renamed from win32/bin/bin/7z.dll) | bin | 858624 -> 858624 bytes | |||
-rw-r--r-- | win32/tools/7z.exe (renamed from win32/bin/bin/7z.exe) | bin | 161792 -> 161792 bytes | |||
-rw-r--r-- | win32/tools/cp.exe (renamed from win32/bin/bin/cp.exe) | bin | 130048 -> 130048 bytes | |||
-rw-r--r-- | win32/tools/find.exe (renamed from win32/bin/bin/find.exe) | bin | 160256 -> 160256 bytes | |||
-rw-r--r-- | win32/tools/libeay32.dll (renamed from win32/bin/bin/libeay32.dll) | bin | 1177600 -> 1177600 bytes | |||
-rw-r--r-- | win32/tools/libiconv2.dll (renamed from win32/bin/bin/libiconv2.dll) | bin | 1008128 -> 1008128 bytes | |||
-rw-r--r-- | win32/tools/libintl3.dll (renamed from win32/bin/bin/libintl3.dll) | bin | 103424 -> 103424 bytes | |||
-rw-r--r-- | win32/tools/libssl32.dll (renamed from win32/bin/bin/libssl32.dll) | bin | 232960 -> 232960 bytes | |||
-rw-r--r-- | win32/tools/ls.exe (renamed from win32/bin/bin/ls.exe) | bin | 180736 -> 180736 bytes | |||
-rw-r--r-- | win32/tools/md5sum.exe (renamed from win32/bin/bin/md5sum.exe) | bin | 41984 -> 41984 bytes | |||
-rw-r--r-- | win32/tools/mkdir.exe (renamed from win32/bin/bin/mkdir.exe) | bin | 32768 -> 32768 bytes | |||
-rw-r--r-- | win32/tools/mv.exe (renamed from win32/bin/bin/mv.exe) | bin | 138752 -> 138752 bytes | |||
-rw-r--r-- | win32/tools/pwd.exe (renamed from win32/bin/bin/pwd.exe) | bin | 61440 -> 61440 bytes | |||
-rw-r--r-- | win32/tools/rmdir.exe (renamed from win32/bin/bin/rmdir.exe) | bin | 25088 -> 25088 bytes | |||
-rw-r--r-- | win32/tools/test.exe (renamed from win32/bin/bin/test.exe) | bin | 62976 -> 62976 bytes | |||
-rw-r--r-- | win32/tools/uname.exe (renamed from win32/bin/bin/uname.exe) | bin | 33792 -> 33792 bytes | |||
-rw-r--r-- | win32/tools/wget.exe (renamed from win32/bin/bin/wget.exe) | bin | 449024 -> 449024 bytes | |||
-rw-r--r-- | win32pack.bat | 33 |
26 files changed, 18 insertions, 42 deletions
diff --git a/install.bat b/install.bat index 6dc8cd02..85ef73f6 100644 --- a/install.bat +++ b/install.bat | |||
@@ -1,6 +1,6 @@ | |||
1 | rem=rem --[[ | 1 | rem=rem --[[ |
2 | @setlocal& set luafile="%~f0" & if exist "%~f0.bat" set luafile="%~f0.bat" | 2 | @setlocal& set luafile="%~f0" & if exist "%~f0.bat" set luafile="%~f0.bat" |
3 | @lua5.1\bin\lua5.1.exe %luafile% %*& exit /b ]] | 3 | @win32\lua5.1\bin\lua5.1.exe %luafile% %*& exit /b ]] |
4 | 4 | ||
5 | local vars = {} | 5 | local vars = {} |
6 | 6 | ||
@@ -38,7 +38,7 @@ local SELFCONTAINED = false | |||
38 | -- Some helpers | 38 | -- Some helpers |
39 | -- | 39 | -- |
40 | 40 | ||
41 | local pe = assert(loadfile(".\\bin\\pe-parser.lua"))() | 41 | local pe = assert(loadfile(".\\win32\\pe-parser.lua"))() |
42 | 42 | ||
43 | local function die(message) | 43 | local function die(message) |
44 | if message then print(message) end | 44 | if message then print(message) end |
@@ -80,12 +80,12 @@ local function exec(cmd) | |||
80 | end | 80 | end |
81 | 81 | ||
82 | local function exists(filename) | 82 | local function exists(filename) |
83 | local cmd = [[.\bin\bin\test -e "]]..filename..[["]] | 83 | local cmd = [[.\win32\tools\test -e "]]..filename..[["]] |
84 | return exec(cmd) | 84 | return exec(cmd) |
85 | end | 85 | end |
86 | 86 | ||
87 | local function mkdir (dir) | 87 | local function mkdir (dir) |
88 | return exec([[.\bin\bin\mkdir -p "]]..dir..[[" >NUL]]) | 88 | return exec([[.\win32\tools\mkdir -p "]]..dir..[[" >NUL]]) |
89 | end | 89 | end |
90 | 90 | ||
91 | -- does the current user have admin priviledges ( = elevated) | 91 | -- does the current user have admin priviledges ( = elevated) |
@@ -666,13 +666,22 @@ if INSTALL_LUA then | |||
666 | if not exists(vars.LUA_INCDIR) then | 666 | if not exists(vars.LUA_INCDIR) then |
667 | mkdir(vars.LUA_INCDIR) | 667 | mkdir(vars.LUA_INCDIR) |
668 | end | 668 | end |
669 | exec(S[[COPY lua5.1\bin\*.* "$LUA_BINDIR" >NUL]]) | 669 | exec(S[[COPY win32\lua5.1\bin\*.* "$LUA_BINDIR" >NUL]]) |
670 | exec(S[[COPY lua5.1\include\*.* "$LUA_INCDIR" >NUL]]) | 670 | exec(S[[COPY win32\lua5.1\include\*.* "$LUA_INCDIR" >NUL]]) |
671 | print(S"Installed the LuaRocks bundled Lua interpreter in $LUA_BINDIR") | 671 | print(S"Installed the LuaRocks bundled Lua interpreter in $LUA_BINDIR") |
672 | end | 672 | end |
673 | 673 | ||
674 | -- Copy the LuaRocks binaries | 674 | -- Copy the LuaRocks binaries |
675 | if not exec(S[[XCOPY /S bin\*.* "$BINDIR" >NUL]]) then | 675 | if not exists(S[[$BINDIR\tools]]) then |
676 | if not mkdir(S[[$BINDIR\tools]]) then | ||
677 | die() | ||
678 | end | ||
679 | end | ||
680 | if not exec(S[[COPY win32\tools\*.* "$BINDIR\tools" >NUL]]) then | ||
681 | die() | ||
682 | end | ||
683 | -- Copy LR bin helper files | ||
684 | if not exec(S[[COPY win32\*.* "$BINDIR" >NUL]]) then | ||
676 | die() | 685 | die() |
677 | end | 686 | end |
678 | -- Copy the LuaRocks lua source files | 687 | -- Copy the LuaRocks lua source files |
@@ -870,7 +879,7 @@ if REGISTRY then | |||
870 | -- expand template with correct path information | 879 | -- expand template with correct path information |
871 | print() | 880 | print() |
872 | print([[Loading registry information for ".rockspec" files]]) | 881 | print([[Loading registry information for ".rockspec" files]]) |
873 | exec( S[[lua5.1\bin\lua5.1.exe "$FULL_PREFIX\LuaRocks.reg.lua" "$FULL_PREFIX\LuaRocks.reg.template"]] ) | 882 | exec( S[[win32\lua5.1\bin\lua5.1.exe "$FULL_PREFIX\LuaRocks.reg.lua" "$FULL_PREFIX\LuaRocks.reg.template"]] ) |
874 | exec( S[[regedit /S "$FULL_PREFIX\\LuaRocks.reg"]] ) | 883 | exec( S[[regedit /S "$FULL_PREFIX\\LuaRocks.reg"]] ) |
875 | end | 884 | end |
876 | 885 | ||
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 693cdbdb..59a17754 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -319,7 +319,7 @@ if detected.windows then | |||
319 | "MKDIR", "MV", "PWD", "RMDIR", "TEST", "UNAME", "WGET" } | 319 | "MKDIR", "MV", "PWD", "RMDIR", "TEST", "UNAME", "WGET" } |
320 | for _, var in ipairs(bins) do | 320 | for _, var in ipairs(bins) do |
321 | if defaults.variables[var] then | 321 | if defaults.variables[var] then |
322 | defaults.variables[var] = full_prefix.."\\bin\\"..defaults.variables[var] | 322 | defaults.variables[var] = full_prefix.."\\tools\\"..defaults.variables[var] |
323 | end | 323 | end |
324 | end | 324 | end |
325 | 325 | ||
diff --git a/win32/bin/LuaRocks.reg.lua b/win32/LuaRocks.reg.lua index 2eb7583a..2eb7583a 100644 --- a/win32/bin/LuaRocks.reg.lua +++ b/win32/LuaRocks.reg.lua | |||
diff --git a/win32/bin/LuaRocks.reg.template b/win32/LuaRocks.reg.template index 82cc180f..82cc180f 100644 --- a/win32/bin/LuaRocks.reg.template +++ b/win32/LuaRocks.reg.template | |||
diff --git a/win32/bin/lua.ico b/win32/lua.ico index 56dc4fe1..56dc4fe1 100644 --- a/win32/bin/lua.ico +++ b/win32/lua.ico | |||
Binary files differ | |||
diff --git a/win32/bin/luarocksw.bat b/win32/luarocksw.bat index 8ac02920..8ac02920 100644 --- a/win32/bin/luarocksw.bat +++ b/win32/luarocksw.bat | |||
diff --git a/win32/bin/pe-parser.lua b/win32/pe-parser.lua index 30bb8390..30bb8390 100644 --- a/win32/bin/pe-parser.lua +++ b/win32/pe-parser.lua | |||
diff --git a/win32/bin/rclauncher.c b/win32/rclauncher.c index 77459f46..77459f46 100644 --- a/win32/bin/rclauncher.c +++ b/win32/rclauncher.c | |||
diff --git a/win32/bin/bin/7z.dll b/win32/tools/7z.dll index c0ff7fbe..c0ff7fbe 100644 --- a/win32/bin/bin/7z.dll +++ b/win32/tools/7z.dll | |||
Binary files differ | |||
diff --git a/win32/bin/bin/7z.exe b/win32/tools/7z.exe index 5e3d6f9c..5e3d6f9c 100644 --- a/win32/bin/bin/7z.exe +++ b/win32/tools/7z.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/cp.exe b/win32/tools/cp.exe index 0ef4fe85..0ef4fe85 100644 --- a/win32/bin/bin/cp.exe +++ b/win32/tools/cp.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/find.exe b/win32/tools/find.exe index 85192fbf..85192fbf 100644 --- a/win32/bin/bin/find.exe +++ b/win32/tools/find.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/libeay32.dll b/win32/tools/libeay32.dll index 8d31f866..8d31f866 100644 --- a/win32/bin/bin/libeay32.dll +++ b/win32/tools/libeay32.dll | |||
Binary files differ | |||
diff --git a/win32/bin/bin/libiconv2.dll b/win32/tools/libiconv2.dll index 544dd92f..544dd92f 100644 --- a/win32/bin/bin/libiconv2.dll +++ b/win32/tools/libiconv2.dll | |||
Binary files differ | |||
diff --git a/win32/bin/bin/libintl3.dll b/win32/tools/libintl3.dll index ec11e6b1..ec11e6b1 100644 --- a/win32/bin/bin/libintl3.dll +++ b/win32/tools/libintl3.dll | |||
Binary files differ | |||
diff --git a/win32/bin/bin/libssl32.dll b/win32/tools/libssl32.dll index a30ff0e9..a30ff0e9 100644 --- a/win32/bin/bin/libssl32.dll +++ b/win32/tools/libssl32.dll | |||
Binary files differ | |||
diff --git a/win32/bin/bin/ls.exe b/win32/tools/ls.exe index 96ff2e57..96ff2e57 100644 --- a/win32/bin/bin/ls.exe +++ b/win32/tools/ls.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/md5sum.exe b/win32/tools/md5sum.exe index 4ae9f74f..4ae9f74f 100644 --- a/win32/bin/bin/md5sum.exe +++ b/win32/tools/md5sum.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/mkdir.exe b/win32/tools/mkdir.exe index 83e57d97..83e57d97 100644 --- a/win32/bin/bin/mkdir.exe +++ b/win32/tools/mkdir.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/mv.exe b/win32/tools/mv.exe index 9fb65bb9..9fb65bb9 100644 --- a/win32/bin/bin/mv.exe +++ b/win32/tools/mv.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/pwd.exe b/win32/tools/pwd.exe index 7dd114de..7dd114de 100644 --- a/win32/bin/bin/pwd.exe +++ b/win32/tools/pwd.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/rmdir.exe b/win32/tools/rmdir.exe index 6a85c3c4..6a85c3c4 100644 --- a/win32/bin/bin/rmdir.exe +++ b/win32/tools/rmdir.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/test.exe b/win32/tools/test.exe index 94c95f9e..94c95f9e 100644 --- a/win32/bin/bin/test.exe +++ b/win32/tools/test.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/uname.exe b/win32/tools/uname.exe index 3e2f4cf8..3e2f4cf8 100644 --- a/win32/bin/bin/uname.exe +++ b/win32/tools/uname.exe | |||
Binary files differ | |||
diff --git a/win32/bin/bin/wget.exe b/win32/tools/wget.exe index 54b372e6..54b372e6 100644 --- a/win32/bin/bin/wget.exe +++ b/win32/tools/wget.exe | |||
Binary files differ | |||
diff --git a/win32pack.bat b/win32pack.bat deleted file mode 100644 index 022a44db..00000000 --- a/win32pack.bat +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | @ECHO OFF | ||
2 | ECHO. | ||
3 | IF "%1"=="" GOTO GOEXIT | ||
4 | |||
5 | :PACKIT | ||
6 | mkdir %1 | ||
7 | mkdir %1\test | ||
8 | mkdir %1\src | ||
9 | xcopy /S/E .\test\*.* %1\test | ||
10 | xcopy /S/E .\src\*.* %1\src | ||
11 | xcopy /S/E .\win32\*.* %1 | ||
12 | copy *.* %1 | ||
13 | del %1\configure | ||
14 | del %1\makedist | ||
15 | del %1\Makefile | ||
16 | del %1\win32pack.bat | ||
17 | cd %1 | ||
18 | |||
19 | GOTO:EOF | ||
20 | |||
21 | :GOEXIT | ||
22 | ECHO. | ||
23 | ECHO This command creates a directory with an installable LuaRocks structure. This is | ||
24 | ECHO a workaround for the packaging script being a unix shell script. | ||
25 | ECHO. | ||
26 | ECHO To install LuaRocks on Windows from a Git repo use the following commands: | ||
27 | ECHO. | ||
28 | ECHO %0 ^<TARGET_DIR^> | ||
29 | ECHO install /? | ||
30 | ECHO. | ||
31 | ECHO Then follow instructions displayed to install LuaRocks | ||
32 | ECHO. | ||
33 | |||