s/sed/${SED}/

This commit is contained in:
christos 2016-03-17 13:59:02 +00:00
parent c6f7781d4f
commit 9c9fb684e0
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $NetBSD: siglist.sh,v 1.11 2016/03/17 13:54:31 christos Exp $
# $NetBSD: siglist.sh,v 1.12 2016/03/17 13:59:02 christos Exp $
#
# Script to generate a sorted, complete list of signals, suitable
# for inclusion in trap.c as array initializer.
@ -26,7 +26,7 @@ CPP="${1-cc -E}"
{ QwErTy .signal = SIG\1 , .name = "\1", .mess = "\2" },\
#endif/') > $in
# work around for gcc 5
$CPP $in | grep -v '^#' | tr -d '\n' | sed 's/},/},\
$CPP $in | grep -v '^#' | tr -d '\n' | ${SED} 's/},/},\
/g' > $out
${SED} -n 's/{ QwErTy/{/p' < $out | ${AWK} '{print NR, $0}' | sort -k 5n -k 1n |
${SED} 's/^[0-9]* //' |