You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-02 17:22:27 +03:00
permit execution of scripts when source is located on a non-executable file system
This commit is contained in:
@ -15,7 +15,7 @@ set(loggingcpp_LIB_SRCS
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/messageids.h ${CMAKE_CURRENT_SOURCE_DIR}/errorids.h
|
||||
COMMAND ./genMsgAndErrId.sh
|
||||
COMMAND /bin/sh genMsgAndErrId.sh
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS genMsgId.pl genErrId.pl
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
./genMsgId.pl > messageids-temp.h
|
||||
perl ./genMsgId.pl > messageids-temp.h
|
||||
diff -abBq messageids-temp.h messageids.h >/dev/null 2>&1; if [ $? -ne 0 ]; then mv -f messageids-temp.h messageids.h; else touch -a messageids.h; fi;
|
||||
rm -f messageids-temp.h
|
||||
./genErrId.pl > errorids-temp.h
|
||||
perl ./genErrId.pl > errorids-temp.h
|
||||
diff -abBq errorids-temp.h errorids.h >/dev/null 2>&1; if [ $? -ne 0 ]; then mv -f errorids-temp.h errorids.h; else touch -a errorids.h; fi;
|
||||
rm -f errorids-temp.h
|
||||
|
Reference in New Issue
Block a user