This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Metaconfig documentation update (part 2)
[metaconfig.git] / U / mksample
CommitLineData
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
7rm -f config.sh Policy.sh
cf8c45ec 8sh ./Configure -Dprefix=/opt/perl -Doptimize=-O -Dusethreads -Duse5005threads -Duse64bitint -Duselargefiles \
959f3c4c
JH
9 -Dcf_by='yourname' \
10 -Dcf_email='yourname@yourhost.yourplace.com' \
11 -Dperladmin='yourname@yourhost.yourplace.com' \
12 -Dmydomain='.yourplace.com' \
13 -Dmyhostname='yourhost' \
cf8c45ec
JH
14 -dE -Dusedevel
15test $? = 0 || exit 1
959f3c4c
JH
16chmod u+w Porting Porting/Glossary Porting/config*
17cp config.sh Porting/config.sh
18sh config_h.SH
19cat <<'EOCP' > Porting/config_H
20/* This file (config_H) is a sample config.h file. If you are unable
21 to successfully run Configure, copy this file to config.h and
22 edit it to suit your system.
23*/
24EOCP
25cat config.h >> Porting/config_H
26rm config.sh config.h
27if newer Configure Porting/Glossary; then
28 pwd=`pwd`
29 cd U
30 perl mkglossary > $pwd/Porting/Glossary
31 cd $pwd/Porting
32 rm -f Glossary.rej
15b97373
MB
33 # The standard 'dist' units contain some strings that upset
34 # pod2man. This patch silences pod2man's warnings.
959f3c4c
JH
35 patch < $pwd/U/Glossary.patch
36 if test -f Glossary.rej; then
37 echo 'Check possible failed patch to Porting/Glossary!'
38 exit 2
39 fi
40fi