blob: a56cbdf094d0321f7b94030676766fe8c8568e65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-ad,v 1.1 2011/01/24 08:40:39 obache Exp $
"-m" option for grep is not portable.
--- Modules/ManageVersion.cmake.orig 2010-12-06 00:55:50.000000000 +0000
+++ Modules/ManageVersion.cmake
@@ -31,7 +31,7 @@ IF(NOT DEFINED _MANAGE_VERSION_CMAKE_)
INCLUDE(ManageVariable)
MACRO(LOAD_RELEASE_FILE releaseFile)
- COMMAND_OUTPUT_TO_VARIABLE(_grep_line grep -F "[Changes]" -n -m 1 ${releaseFile})
+ COMMAND_OUTPUT_TO_VARIABLE(_grep_line grep -F "[Changes]" -n ${releaseFile})
SET(RELEASE_FILE ${releaseFile})
#MESSAGE("_grep_line=|${_grep_line}|")
IF("${_grep_line}" STREQUAL "")
|