This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Regenerate .package file, specifying .metaconf-exclusions.txt
[metaconfig.git] / dist / lib / errnolist.SH
1 # $Id: errnolist.sh,v 3.0.1.1 1994/01/24 14:00:00 ram Exp ram $
2 #
3 #  Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4 #  
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.
10 #
11 # Original Author: Harlan Stenn <harlan@mumps.pfcs.com>
12 #
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
16 #
17 # Revision 3.0  1993/08/18  12:04:36  ram
18 # Baseline for dist 3.0 netwide release.
19 #
20
21 case $CONFIG in
22 '')
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=../../../..;
28         else
29                 echo "Can't find config.sh."; exit 1
30         fi
31         . $TOP/config.sh
32         ;;
33 esac
34 case "$0" in
35 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
36 esac
37 case "$errnolistc" in
38 '') ;;
39 *)
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."
43 esac
44