Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | #!/bin/sh |
2 | # This is the script I use to keep the Porting/ stuff up-to-date | |
3 | # with the latest Configure. | |
4 | # Andy Dougherty July 14, 1998 | |
5 | # Jarkko Hietaniemi Sept 15, 1998 Added -Duse64bits | |
6 | ||
7 | rm -f config.sh Policy.sh | |
8 | sh Configure -Dprefix=/opt/perl -Doptimize=-O -Dusethreads -Duse64bits \ | |
9 | -Dcf_by='yourname' \ | |
10 | -Dcf_email='yourname@yourhost.yourplace.com' \ | |
11 | -Dperladmin='yourname@yourhost.yourplace.com' \ | |
12 | -Dmydomain='.yourplace.com' \ | |
13 | -Dmyhostname='yourhost' \ | |
14 | -dE | |
15 | chmod u+w Porting Porting/Glossary Porting/config* | |
16 | cp config.sh Porting/config.sh | |
17 | sh config_h.SH | |
18 | cat <<'EOCP' > Porting/config_H | |
19 | /* This file (config_H) is a sample config.h file. If you are unable | |
20 | to successfully run Configure, copy this file to config.h and | |
21 | edit it to suit your system. | |
22 | */ | |
23 | EOCP | |
24 | cat config.h >> Porting/config_H | |
25 | rm config.sh config.h | |
26 | if newer Configure Porting/Glossary; then | |
27 | pwd=`pwd` | |
28 | cd U | |
29 | perl mkglossary > $pwd/Porting/Glossary | |
30 | cd $pwd/Porting | |
31 | rm -f Glossary.rej | |
32 | patch < $pwd/U/Glossary.patch | |
33 | if test -f Glossary.rej; then | |
34 | echo 'Check possible failed patch to Porting/Glossary!' | |
35 | exit 2 | |
36 | fi | |
37 | fi |