comparison contrib/signalent.h.sh @ 235:8773740401a5

Centralized signal handlers management in the library
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 05 Mar 2010 19:01:48 +0900
parents
children
comparison
equal deleted inserted replaced
234:f91fe0b85928 235:8773740401a5
1 #!/bin/bash
2
3 # The goal here is to regenerate a file signalent.h if it is missing. This file contains only a list of the signals abbreviations.
4
5 # This script needs to be improved...
6 cpp -dM /usr/include/signal.h \
7 | tr -s '\t ' ' ' \
8 | sed 's:#define \(SIG[A-Z]\+[0-9]*\) \([0-9]\+\):\2 \1:p;d' \
9 | sort -n --unique
"Welcome to our mercurial repository"