Ver Fonte

ncd: Run parse_linux_input.sh with bash, instead of relying on the shebang.
This removes the need to fixup the shebang in Nix builds.

Ambroz Bizjak há 11 anos atrás
pai
commit
f282fbf4d2
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      ncd/CMakeLists.txt

+ 1 - 1
ncd/CMakeLists.txt

@@ -174,7 +174,7 @@ if (BADVPN_USE_LINUX_INPUT)
 
     message(STATUS "Generating linux_input_names.h from ${LINUX_INPUT_H_PATH}")
 
-    execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/parse_linux_input.sh 
+    execute_process(COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/parse_linux_input.sh 
                             ${LINUX_INPUT_H_PATH}
                             ${CMAKE_CURRENT_BINARY_DIR}/linux_input_names.h
                     RESULT_VARIABLE LINUX_INPUT_PARSE_RESULT)