From df4db3927748d77c1192c0b103f3ffdfbc5d7fd8 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sun, 23 Oct 2011 12:35:51 -0400 Subject: [PATCH] Use #n in strtab.sed. This feature allows us to make all makefile rules which call sed scripts the same. This may help reduce code duplication in the makefile later. --- Makefile.am | 2 +- src/strtab.sed | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index c802b2d..5680a6e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -65,7 +65,7 @@ src/typenames.h: $(srcdir)/src/types.lst $(srcdir)/src/typenames.sed $(AM_V_at)mv -f $@.tmp $@ src/errtab.h: $(srcdir)/src/errors.lst $(srcdir)/src/strtab.sed - $(AM_V_GEN)sed -nf $(srcdir)/src/strtab.sed \ + $(AM_V_GEN)sed -f $(srcdir)/src/strtab.sed \ < $(srcdir)/src/errors.lst > $@.tmp $(AM_V_at)mv -f $@.tmp $@ diff --git a/src/strtab.sed b/src/strtab.sed index a24c6b2..a5ad957 100644 --- a/src/strtab.sed +++ b/src/strtab.sed @@ -1,3 +1,4 @@ +#n 1i\ /*\ * Copyright © 2011 Nick Bowler.\ -- 2.43.0