This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Subject: optimize matching -g still enables -DDEBUGING
[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
da5e3307
MB
7cat >Policy.sh <<'EOP'
8libswanted="cl pthread $libswanted"
9EOP
10
974341ad 11sh ./Configure -Dprefix=/opt/perl \
da5e3307 12 -Dcf_by='merijn' \
959f3c4c
JH
13 -Dcf_email='yourname@yourhost.yourplace.com' \
14 -Dperladmin='yourname@yourhost.yourplace.com' \
15 -Dmydomain='.yourplace.com' \
16 -Dmyhostname='yourhost' \
da5e3307 17 -Duse64bitint \
974341ad
JH
18 -Dusedevel \
19 -dE
cf8c45ec 20test $? = 0 || exit 1
959f3c4c
JH
21chmod u+w Porting Porting/Glossary Porting/config*
22cp config.sh Porting/config.sh
23sh config_h.SH
24cat <<'EOCP' > Porting/config_H
25/* This file (config_H) is a sample config.h file. If you are unable
26 to successfully run Configure, copy this file to config.h and
27 edit it to suit your system.
28*/
29EOCP
30cat config.h >> Porting/config_H
31rm config.sh config.h
32if newer Configure Porting/Glossary; then
33 pwd=`pwd`
da5e3307
MB
34 U/mkgloss.pl >Porting/Glossary
35# cd Porting
36# rm -f Glossary.rej
37# # The standard 'dist' units contain some strings that upset
38# # pod2man. This patch silences pod2man's warnings.
39# patch < $pwd/U/Glossary.patch
40# if test -f Glossary.rej; then
41# echo 'Check possible failed patch to Porting/Glossary!'
42# exit 2
43# fi
44# cd $pwd
959f3c4c 45 fi
974341ad 46# Remove detritus.
da5e3307
MB
47#if test -f makeaperl -a -f pod/Makefile; then
48# rm -f cflags config.h cppstdin makeaperl makedepend makedir Makefile myconfig pod/Makefile Policy.sh writemain x2p/cflags x2p/Makefile Obsolete Wanted
49# fi