Index: head/usr.bin/grep/Makefile =================================================================== --- head/usr.bin/grep/Makefile +++ head/usr.bin/grep/Makefile @@ -82,7 +82,7 @@ .endif .if ${MK_GNU_GREP_COMPAT} != "no" -CFLAGS+= -I${DESTDIR}/usr/include/gnu +CFLAGS+= -I${DESTDIR}/usr/include/gnu -DWITH_GNU LIBADD+= gnuregex .endif Index: head/usr.bin/grep/grep.c =================================================================== --- head/usr.bin/grep/grep.c +++ head/usr.bin/grep/grep.c @@ -74,6 +74,7 @@ /* 7*/ "\t[--null] [pattern] [file ...]\n", /* 8*/ "Binary file %s matches\n", /* 9*/ "%s (BSD grep) %s\n", +/* 10*/ "%s (BSD grep, GNU compatible) %s\n", }; /* Flags passed to regcomp() and regexec() */ @@ -596,7 +597,11 @@ filebehave = FILE_MMAP; break; case 'V': +#ifdef WITH_GNU + printf(getstr(10), getprogname(), VERSION); +#else printf(getstr(9), getprogname(), VERSION); +#endif exit(0); case 'v': vflag = true; Index: head/usr.bin/grep/nls/C.msg =================================================================== --- head/usr.bin/grep/nls/C.msg +++ head/usr.bin/grep/nls/C.msg @@ -11,3 +11,4 @@ 7 "\t[--null] [pattern] [file ...]\n" 8 "Binary file %s matches\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n" Index: head/usr.bin/grep/nls/es_ES.ISO8859-1.msg =================================================================== --- head/usr.bin/grep/nls/es_ES.ISO8859-1.msg +++ head/usr.bin/grep/nls/es_ES.ISO8859-1.msg @@ -11,3 +11,4 @@ 7 "\t[--null] [pauta] [fichero ...]\n" 8 "fichero binario %s se ajusta\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n" Index: head/usr.bin/grep/nls/gl_ES.ISO8859-1.msg =================================================================== --- head/usr.bin/grep/nls/gl_ES.ISO8859-1.msg +++ head/usr.bin/grep/nls/gl_ES.ISO8859-1.msg @@ -11,3 +11,4 @@ 7 "\t[--null] [pauta] [ficheiro ...]\n" 8 "ficheiro binario %s conforma\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n" Index: head/usr.bin/grep/nls/hu_HU.ISO8859-2.msg =================================================================== --- head/usr.bin/grep/nls/hu_HU.ISO8859-2.msg +++ head/usr.bin/grep/nls/hu_HU.ISO8859-2.msg @@ -11,3 +11,4 @@ 7 "\t[--null] [minta] [fájl ...]\n" 8 "%s bináris fájl illeszkedik\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n" Index: head/usr.bin/grep/nls/ja_JP.SJIS.msg =================================================================== --- head/usr.bin/grep/nls/ja_JP.SJIS.msg +++ head/usr.bin/grep/nls/ja_JP.SJIS.msg @@ -11,3 +11,4 @@ 7 "\t[--null] [パターン] [ファイル名 ...]\n" 8 "バイナリファイル %s にマッチしました\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n" Index: head/usr.bin/grep/nls/ja_JP.UTF-8.msg =================================================================== --- head/usr.bin/grep/nls/ja_JP.UTF-8.msg +++ head/usr.bin/grep/nls/ja_JP.UTF-8.msg @@ -11,3 +11,4 @@ 7 "\t[--null] [パターン] [ファイル名 ...]\n" 8 "バイナリファイル %s にマッチしました\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n" Index: head/usr.bin/grep/nls/ja_JP.eucJP.msg =================================================================== --- head/usr.bin/grep/nls/ja_JP.eucJP.msg +++ head/usr.bin/grep/nls/ja_JP.eucJP.msg @@ -11,3 +11,4 @@ 7 "\t[--null] [パターン] [ファイル名 ...]\n" 8 "バイナリファイル %s にマッチしました\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n" Index: head/usr.bin/grep/nls/pt_BR.ISO8859-1.msg =================================================================== --- head/usr.bin/grep/nls/pt_BR.ISO8859-1.msg +++ head/usr.bin/grep/nls/pt_BR.ISO8859-1.msg @@ -11,3 +11,4 @@ 7 "\t[--null] [padr縊] [arquivo ...]\n" 8 "arquivo bin疵io %s casa com o padr縊\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n" Index: head/usr.bin/grep/nls/ru_RU.KOI8-R.msg =================================================================== --- head/usr.bin/grep/nls/ru_RU.KOI8-R.msg +++ head/usr.bin/grep/nls/ru_RU.KOI8-R.msg @@ -11,3 +11,4 @@ 7 "\t[--null] [ロチツフマホ] [ニチハフ ...]\n" 8 "トラマノ゙ホルハ ニチハフ %s モマラミチトチナヤ\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n" Index: head/usr.bin/grep/nls/uk_UA.UTF-8.msg =================================================================== --- head/usr.bin/grep/nls/uk_UA.UTF-8.msg +++ head/usr.bin/grep/nls/uk_UA.UTF-8.msg @@ -10,3 +10,4 @@ 7 "\t[--null] [шаблон] [файл ...]\n" 8 "двійковий файл %s співпадає\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n" Index: head/usr.bin/grep/nls/zh_CN.UTF-8.msg =================================================================== --- head/usr.bin/grep/nls/zh_CN.UTF-8.msg +++ head/usr.bin/grep/nls/zh_CN.UTF-8.msg @@ -11,3 +11,4 @@ 7 "\t[--null] [模式] [文件名 ...]\n" 8 "二进制文件 %s 包含模式\n" 9 "%s (BSD grep) %s\n" +10 "%s (BSD grep, GNU compatible) %s\n"