aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install.bat2
-rw-r--r--win32pack.bat33
2 files changed, 34 insertions, 1 deletions
diff --git a/install.bat b/install.bat
index 8222454e..abf680a4 100644
--- a/install.bat
+++ b/install.bat
@@ -643,7 +643,7 @@ print(S[[
643 You may want to add the following elements to your paths; 643 You may want to add the following elements to your paths;
644PATH : $LUA_BINDIR;$FULL_PREFIX 644PATH : $LUA_BINDIR;$FULL_PREFIX
645LUA_PATH : $ROCKS_TREE\share\lua\$LUA_VERSION\?.lua;$ROCKS_TREE\share\lua\$LUA_VERSION\?\init.lua 645LUA_PATH : $ROCKS_TREE\share\lua\$LUA_VERSION\?.lua;$ROCKS_TREE\share\lua\$LUA_VERSION\?\init.lua
646LUA_CPATH: $LUA_LIBDIR\lua\$LUA_VERSION\?.dll 646LUA_CPATH: $ROCKS_TREE\lib\lua\$LUA_VERSION\?.dll
647 647
648]]) 648]])
649os.exit(0) 649os.exit(0)
diff --git a/win32pack.bat b/win32pack.bat
new file mode 100644
index 00000000..022a44db
--- /dev/null
+++ b/win32pack.bat
@@ -0,0 +1,33 @@
1@ECHO OFF
2ECHO.
3IF "%1"=="" GOTO GOEXIT
4
5:PACKIT
6mkdir %1
7mkdir %1\test
8mkdir %1\src
9xcopy /S/E .\test\*.* %1\test
10xcopy /S/E .\src\*.* %1\src
11xcopy /S/E .\win32\*.* %1
12copy *.* %1
13del %1\configure
14del %1\makedist
15del %1\Makefile
16del %1\win32pack.bat
17cd %1
18
19GOTO:EOF
20
21:GOEXIT
22ECHO.
23ECHO This command creates a directory with an installable LuaRocks structure. This is
24ECHO a workaround for the packaging script being a unix shell script.
25ECHO.
26ECHO To install LuaRocks on Windows from a Git repo use the following commands:
27ECHO.
28ECHO %0 ^<TARGET_DIR^>
29ECHO install /?
30ECHO.
31ECHO Then follow instructions displayed to install LuaRocks
32ECHO.
33