Skip to content

Commit 2254d86

Browse files
author
Alexey Volkov
committed
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.
1 parent 093a424 commit 2254d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

luarocks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ IF(WIN32)
5555
SET(MD5_EXECUTABLE_NAME "md5sum")
5656
SET(UNAME_M "x64")
5757
SET(SHEBANG
58-
"rem=rem --[[
58+
"::rem:: --[[
5959
@setlocal& set PATH=${CMAKE_INSTALL_PREFIX}/${INSTALL_BIN_SUBDIR};%PATH% & set luafile=\"%~f0\" & if exist \"%~f0.bat\" set luafile=\"%~f0.bat\"
6060
@${CMAKE_INSTALL_PREFIX}/${INSTALL_BIN_SUBDIR}/${LUA_EXE_NAME}.exe %luafile% %*& exit /b ]]")
6161

0 commit comments

Comments
 (0)