From 2254d861973da66a6c9b44a7699d0ac92e45e56d Mon Sep 17 00:00:00 2001 From: Alexey Volkov Date: Wed, 4 May 2016 02:23:26 -0700 Subject: Stopped echoing the Windows fake "shebang" line. This allows direct evaluation of the output of `luarocks path`. Old hack used Lua variable rem. New hack used Lua label rem. --- luarocks/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luarocks/CMakeLists.txt b/luarocks/CMakeLists.txt index a9fc601..a77199b 100644 --- a/luarocks/CMakeLists.txt +++ b/luarocks/CMakeLists.txt @@ -55,7 +55,7 @@ IF(WIN32) SET(MD5_EXECUTABLE_NAME "md5sum") SET(UNAME_M "x64") SET(SHEBANG -"rem=rem --[[ +"::rem:: --[[ @setlocal& set PATH=${CMAKE_INSTALL_PREFIX}/${INSTALL_BIN_SUBDIR};%PATH% & set luafile=\"%~f0\" & if exist \"%~f0.bat\" set luafile=\"%~f0.bat\" @${CMAKE_INSTALL_PREFIX}/${INSTALL_BIN_SUBDIR}/${LUA_EXE_NAME}.exe %luafile% %*& exit /b ]]") -- cgit v1.2.3