1 # $Id: errnolist.sh,v 3.0.1.1 1994/01/24 14:00:00 ram Exp ram $
3 # Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
5 # You may redistribute only under the terms of the Artistic Licence,
6 # as specified in the README file that comes with the distribution.
7 # You may reuse parts of this distribution only within the terms of
8 # that same Artistic Licence; a copy of which may be found at the root
9 # of the source tree for dist 4.0.
11 # Original Author: Harlan Stenn <harlan@mumps.pfcs.com>
13 # $Log: errnolist.sh,v $
14 # Revision 3.0.1.1 1994/01/24 14:00:00 ram
15 # patch16: changed top ln-style config.sh lookup into test-style one
17 # Revision 3.0 1993/08/18 12:04:36 ram
18 # Baseline for dist 3.0 netwide release.
23 if test -f config.sh; then TOP=.;
24 elif test -f ../config.sh; then TOP=..;
25 elif test -f ../../config.sh; then TOP=../..;
26 elif test -f ../../../config.sh; then TOP=../../..;
27 elif test -f ../../../../config.sh; then TOP=../../../..;
29 echo "Can't find config.sh."; exit 1
35 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
40 echo "Making $errnolistc ..."
41 awk -f errnolist.a < /usr/include/sys/errno.h > $errnolistc
42 echo "It would be a good idea to make sure that $errnolistc is correct."