This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Rename use64bits to use64bitint;
[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
33b2427b 8sh Configure -Dprefix=/opt/perl -Doptimize=-O -Dusethreads -Duse64bitint -Duselfs \
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' \
14 -dE
15chmod u+w Porting Porting/Glossary Porting/config*
16cp config.sh Porting/config.sh
17sh config_h.SH
18cat <<'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*/
23EOCP
24cat config.h >> Porting/config_H
25rm config.sh config.h
26if 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
37fi