# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Thu Feb 21 08:11:57 EET 2002 [metaconfig 3.0 PL70]
+# Generated on Thu Feb 21 08:33:08 EET 2002 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
echo $xxx | $tr ' ' $trnl | $sort | $uniq | $awk '
{
printf "#ifdef SIG"; printf $1; printf "\n"
- printf "printf(\"%%d "; printf $1; printf "\\n\",SIG";
+ printf "printf(\""; printf $1; printf " %%d\\n\",SIG";
printf $1; printf ");\n"
printf "#endif\n"
}
' >>signal.c
$cat >signal.awk <<'EOP'
BEGIN { ndups = 0 }
-$2 ~ /^NSIG$/ { nsig = $1 }
-($2 !~ /^NSIG$/) && (NF == 2) {
- if ($1 > maxsig) { maxsig = $1 }
- if (sig_name[$1]) {
- dup_name[ndups] = $2
- dup_num[ndups] = $1
+$1 ~ /^NSIG$/ { nsig = $2 }
+($1 !~ /^NSIG$/) && (NF == 2) {
+ if ($2 > maxsig) { maxsig = $2 }
+ if (sig_name[$2]) {
+ dup_name[ndups] = $1
+ dup_num[ndups] = $2
ndups++
}
else {
- sig_name[$1] = $2
- sig_num[$1] = $1
+ sig_name[$2] = $1
+ sig_num[$2] = $2
}
}
END {
set signal
if eval $compile_ok; then
- $run ./signal$_exe | $sort -n | $uniq | $awk -f signal.awk >signal.lst
+ $run ./signal$_exe | $sort -n -k 2 | $uniq | $awk -f signal.awk >signal.lst
else
echo "(I can't seem be able to compile the whole test program)" >&4
echo "(I'll try it in little pieces.)" >&4
done
if $test -s signal.ls1; then
$cat signal.nsg signal.ls1 |
- $sort -n -k 2 | $uniq | $awk -f signal.awk >signal.lst
+ $sort -n | $uniq | $awk -f signal.awk >signal.lst
fi
fi