This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
A few missing files that never made it to perforce
[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
959f3c4c
JH
5
6rm -f config.sh Policy.sh
974341ad 7sh ./Configure -Dprefix=/opt/perl \
959f3c4c
JH
8 -Dcf_by='yourname' \
9 -Dcf_email='yourname@yourhost.yourplace.com' \
10 -Dperladmin='yourname@yourhost.yourplace.com' \
11 -Dmydomain='.yourplace.com' \
12 -Dmyhostname='yourhost' \
974341ad
JH
13 -Dusedevel \
14 -dE
cf8c45ec 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
974341ad
JH
40 cd $pwd
41fi
42# Remove detritus.
43if test -f makeaperl -a -f pod/Makefile; then
44 rm -f cflags config.h cppstdin makeaperl makedepend makedir Makefile myconfig pod/Makefile Policy.sh writemain x2p/cflags x2p/Makefile Obsolete Wanted
959f3c4c 45fi