mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Another attempt to get sed to work on both Mac and Linux.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4051 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
d69644e628
commit
9e6075eb1e
@ -40,7 +40,7 @@ if (A2X_EXECUTABLE AND GZIP_EXECUTABLE AND SED_EXECUTABLE)
|
||||
COMMAND ${CMAKE_COMMAND} ARGS -E make_directory "${d}"
|
||||
COMMAND ${A2X_EXECUTABLE} ARGS ${A2X_OPTS} -D "${d}" "${f}"
|
||||
COMMAND ${GZIP_EXECUTABLE} ARGS -f9 "${o}"
|
||||
COMMAND ${SED_EXECUTABLE} ARGS -e "'s@.so @&man${section}/@'" -i "''" "${d}/*.${section}"
|
||||
COMMAND ${SED_EXECUTABLE} ARGS -e "'s@.so @&man${section}/@'" -i.orig "${d}/*.${section}"
|
||||
COMMAND ${GZIP_EXECUTABLE} ARGS -f9 "${d}/*.${section}"
|
||||
DEPENDS "${f}"
|
||||
COMMENT "Generating ${o}.gz"
|
||||
@ -51,6 +51,7 @@ if (A2X_EXECUTABLE AND GZIP_EXECUTABLE AND SED_EXECUTABLE)
|
||||
install (
|
||||
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man
|
||||
DESTINATION ${WSJT_MANPAGE_DESTINATION}
|
||||
PATTERN "*.orig" EXCLUDE
|
||||
)
|
||||
endif (A2X_EXECUTABLE AND GZIP_EXECUTABLE AND SED_EXECUTABLE)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user