| 1 | #!/bin/sh |
| 2 | # |
| 3 | # This script can be used to keep Porting/config_H (which is an example |
| 4 | # config.h) up-to-date with the latest Configure. |
| 5 | |
| 6 | # Original author: Andy Dougherty July 14, 1998 |
| 7 | |
| 8 | rm -f config.sh Policy.sh |
| 9 | cat >Policy.sh <<'EOP' |
| 10 | libswanted="cl pthread $libswanted" |
| 11 | EOP |
| 12 | |
| 13 | sh ./Configure -Dprefix=/opt/perl \ |
| 14 | -Dcf_by='yourname' \ |
| 15 | -Dcf_email='yourname@yourhost.yourplace.com' \ |
| 16 | -Dperladmin='yourname@yourhost.yourplace.com' \ |
| 17 | -Dmydomain='.yourplace.com' \ |
| 18 | -Dmyhostname='yourhost' \ |
| 19 | -Duse64bitint \ |
| 20 | -Dusedevel \ |
| 21 | -dE |
| 22 | test $? = 0 || exit 1 |
| 23 | chmod u+w Porting Porting/config* |
| 24 | cp config.sh Porting/config.sh |
| 25 | sh config_h.SH |
| 26 | cat <<'EOCP' > Porting/config_H |
| 27 | /* This file (config_H) is a sample config.h file. If you are unable |
| 28 | to successfully run Configure, copy this file to config.h and |
| 29 | edit it to suit your system. |
| 30 | */ |
| 31 | EOCP |
| 32 | cat config.h >> Porting/config_H |
| 33 | rm config.sh config.h |