Skip to content

Commit ee68777

Browse files
Sp1lvuvova
authored andcommitted
Use /bin/sh
Remove Linuxism. Works fine with a POSIX-compat shell
1 parent e69c6e8 commit ee68777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/tokudb/PerconaFT/buildheader/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
set_directory_properties(PROPERTIES INCLUDE_DIRECTORIES "")
22

3-
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/runcat.sh" "#!/bin/bash
3+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/runcat.sh" "#!/bin/sh
44
out=$1; shift
55
exec \"$@\" >$out")
66

77
add_executable(make_tdb make_tdb.cc)
88
set_property(TARGET make_tdb APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE)
99
add_custom_command(
1010
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/db.h"
11-
COMMAND bash runcat.sh "${CMAKE_CURRENT_BINARY_DIR}/db.h" $<TARGET_FILE:make_tdb>
11+
COMMAND sh runcat.sh "${CMAKE_CURRENT_BINARY_DIR}/db.h" $<TARGET_FILE:make_tdb>
1212
DEPENDS make_tdb)
1313
add_custom_target(install_tdb_h DEPENDS
1414
"${CMAKE_CURRENT_BINARY_DIR}/db.h")

0 commit comments

Comments
 (0)