Fix sed expression to only print if substitution happened
authorRaja R Harinath <harinath@hurrynot.org>
Sun, 26 Jul 2009 17:39:40 +0000 (17:39 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Sun, 26 Jul 2009 17:39:40 +0000 (17:39 -0000)
svn path=/trunk/mono/; revision=138694

mono/mini/Makefile.am

index 756863eb2302cab5b5723a135a05fd0d951bea56..4c73518876b66617606f0ec3061173e589c15564 100644 (file)
@@ -582,7 +582,7 @@ EXTRA_DIST = $(common_BURGSRC) cprop.c TestDriver.cs ldscript ldscript.mono \
        $(posix_sources)
 
 version.h: Makefile
-       if test -d $(top_srcdir)/.git/svn; then svn_info="git log --no-color --first-parent -n1 --grep=git-svn-id: --pretty=format:%b | sed -e 's,git-svn-id: \(.*\)@\(.*\) .*,URL: \1 Revision: \2,'"; fi; \
+       if test -d $(top_srcdir)/.git/svn; then svn_info="git log --no-color --first-parent -n1 --grep=git-svn-id: --pretty=format:%b | sed -n -e 's,git-svn-id: \(.*\)@\(.*\) .*,URL: \1 Revision: \2,p'"; fi; \
        if test -d $(srcdir)/.svn; then svn_info='svn info'; fi; \
        if test -n "$$svn_info"; then \
                (cd $(top_srcdir); \