This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mksample adopted to my situation
[metaconfig.git] / U / mksample
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
6 rm -f config.sh Policy.sh
7 cat >Policy.sh <<'EOP'
8 libswanted="cl pthread $libswanted"
9 EOP
10
11 sh ./Configure -Dprefix=/opt/perl \
12         -Dcf_by='merijn' \
13         -Dcf_email='yourname@yourhost.yourplace.com' \
14         -Dperladmin='yourname@yourhost.yourplace.com' \
15         -Dmydomain='.yourplace.com' \
16         -Dmyhostname='yourhost' \
17         -Duse64bitint \
18         -Dusedevel \
19         -dE
20 test $? = 0 || exit 1
21 chmod u+w Porting Porting/Glossary Porting/config*
22 cp config.sh Porting/config.sh
23 sh config_h.SH
24 cat <<'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 */
29 EOCP
30 cat config.h >> Porting/config_H
31 rm config.sh config.h
32 if newer Configure Porting/Glossary; then
33     pwd=`pwd`
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
45     fi
46 # Remove detritus.
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