diff options
author | Alexey Volkov <ark@ark-kun.com> | 2016-05-04 12:23:26 +0300 |
---|---|---|
committer | Alexey Volkov <ark@ark-kun.com> | 2016-05-04 12:23:26 +0300 |
commit | 2254d861973da66a6c9b44a7699d0ac92e45e56d (patch) | |
tree | f2e50ad517caea5b143b7788eeb4e3c75d1558ef | |
parent | 093a4246ee13763517efc53ff7c40b5105b4303b (diff) |
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.
-rw-r--r-- | luarocks/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 ]]") |