On Thu, 2017-09-21 at 19:03 +0200, Johan Vromans wrote: > On Thu, 21 Sep 2017 15:55:24 +0100, Richard Shann <rich...@rshann.plus.com> > wrote: > > > Johan - do you have an idea what's wrong here? > > I've uploaded my .spec file to > http://www.squirrel.nl/pub/xfer/uploads/3CjK4UVlI_1PNyFFw85q_-tg.spec >
Ah, right, the problem is the backslash "\" just before the re-direction "< configure.ac~" of stdin, it was originally there to escape a newline which has gone. So the correct command is this: sed "s;^\\(AC_INIT(\\[.*\\], \\[\\)\\(.*\\)\\], \\(\\[.*\\])\\);\\1\\2-`git rev-parse --short HEAD`], \\3;" < configure.ac~ > configure.ac and with that I get git diff diff --git a/configure.ac b/configure.ac index 1a17fc9..8d0adf6 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([denemo], [2.2.1], [denemo-devel@gnu.org]) +AC_INIT([denemo], [2.2.1-83829d5], [denemo-devel@gnu.org]) AC_CONFIG_SRCDIR([src/core/main.c]) AM_INIT_AUTOMAKE([tar-pax foreign dist-xz subdir-objects]) dnl AC_CANONICAL_SYSTEM as desired. Thank you very much Johan, Richard _______________________________________________ Denemo-devel mailing list Denemo-devel@gnu.org https://lists.gnu.org/mailman/listinfo/denemo-devel