diff --git a/utils/loggingcpp/CMakeLists.txt b/utils/loggingcpp/CMakeLists.txt index d27b11e3c..c8fbbf2c3 100644 --- a/utils/loggingcpp/CMakeLists.txt +++ b/utils/loggingcpp/CMakeLists.txt @@ -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 ) diff --git a/utils/loggingcpp/genMsgAndErrId.sh b/utils/loggingcpp/genMsgAndErrId.sh index 64e113ac8..9182e78d6 100755 --- a/utils/loggingcpp/genMsgAndErrId.sh +++ b/utils/loggingcpp/genMsgAndErrId.sh @@ -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