From 8c7562f11d4baa3316bc7b8547cf6497181468c5 Mon Sep 17 00:00:00 2001 From: Brian Koropoff Date: Thu, 10 Mar 2011 20:19:16 +0800 Subject: [SHELL] Port to AIX - AIX lacks a WCOREDUMP macro. It's just used to append "(core dumped)" to the crash message, so #ifdef around it. - For some reason, the nl program on AIX defaults to not printing line numbers ("-b n"), even though the spec says it should default to "-b t". Explicitly pass "-b a" for good measure in mkbuiltins. Signed-off-by: Brian Koropoff Signed-off-by: Herbert Xu --- src/mkbuiltins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mkbuiltins') diff --git a/src/mkbuiltins b/src/mkbuiltins index e38ce4c..99107c2 100644 --- a/src/mkbuiltins +++ b/src/mkbuiltins @@ -84,7 +84,7 @@ cat <<\! */ ! -sed 's/ -[a-z]*//' $temp2 | nl -v 0 | LC_COLLATE=C sort -u -k 3,3 | +sed 's/ -[a-z]*//' $temp2 | nl -b a -v 0 | LC_COLLATE=C sort -u -k 3,3 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | awk '{ printf "#define %s (builtincmd + %d)\n", $3, $1}' printf '\n#define NUMBUILTINS %d\n' $(wc -l < $temp2) -- cgit 1.4.1