File: mksample

package info (click to toggle)
perl 5.40.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 126,156 kB
  • sloc: ansic: 668,539; perl: 525,522; sh: 72,038; pascal: 6,925; xml: 2,428; yacc: 1,410; makefile: 1,191; cpp: 208; lisp: 1
file content (33 lines) | stat: -rwxr-xr-x 890 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# This script can be used to keep Porting/config_H (which is an example
# config.h) up-to-date with the latest Configure.

# Original author: Andy Dougherty   	July 14, 1998

rm -f config.sh Policy.sh
cat >Policy.sh <<'EOP'
libswanted="cl pthread $libswanted"
EOP

sh ./Configure -Dprefix=/opt/perl \
	-Dcf_by='yourname' \
	-Dcf_email='yourname@yourhost.yourplace.com' \
	-Dperladmin='yourname@yourhost.yourplace.com' \
	-Dmydomain='.yourplace.com' \
	-Dmyhostname='yourhost' \
	-Duse64bitint \
	-Dusedevel \
	-dE
test $? = 0 || exit 1
chmod u+w Porting Porting/config*
cp config.sh Porting/config.sh
sh config_h.SH
cat <<'EOCP' > Porting/config_H
/* This file (config_H) is a sample config.h file.  If you are unable
   to successfully run Configure, copy this file to config.h and
   edit it to suit your system.
*/
EOCP
cat config.h >> Porting/config_H
rm config.sh config.h