mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
894 B

  1. --- ./siglist.sh.orig 1996-09-18 18:52:41.000000000 +0200
  2. +++ ./siglist.sh 2004-09-04 18:35:17.346755840 +0200
  3. @@ -11,19 +11,19 @@
  4. out=tmpo$$.c
  5. ecode=1
  6. trapsigs='0 1 2 13 15'
  7. -trap 'rm -f $in $out; trap 0; exit $ecode' $trapsigs
  8. +trap 'rm -f $in $out; trap - 0; exit $ecode' $trapsigs
  9. CPP="${1-cc -E}"
  10. # The trap here to make up for a bug in bash (1.14.3(1)) that calls the trap
  11. -(trap $trapsigs;
  12. +(trap - $trapsigs;
  13. echo '#include "sh.h"';
  14. echo ' { QwErTy SIGNALS , "DUMMY" , "hook for number of signals" },';
  15. sed -e '/^[ ]*#/d' -e 's/^[ ]*\([^ ][^ ]*\)[ ][ ]*\(.*[^ ]\)[ ]*$/#ifdef SIG\1\
  16. { QwErTy SIG\1 , "\1", "\2" },\
  17. #endif/') > $in
  18. $CPP $in > $out
  19. -sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort +2n +0n |
  20. +sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort -n -k 2 |
  21. sed 's/^[0-9]* //' |
  22. awk 'BEGIN { last=0; nsigs=0; }
  23. {