[inseparable changes from patch from perl5.003_10 to perl5.003_11]
[p5sagit/p5-mst-13.2.git] / old_perl_exp.SH
CommitLineData
ff68c719 1#!/bin/sh
2
3# Written: Nov 1994 Wayne Scott (wscott@ichips.intel.com)
4
5# Create the export list for perl based on 'old_global.sym'.
6# Needed by AIX to do dynamic linking.
7
8# This simple program relys on 'old_global.sym' being up to date
9# with all of the global symbols that a dynamicly link library
10# might want to access.
11
12# All symbols have a Perl_ prefix because that's what embed.h
13# sticks in front of them.
14
15echo "Extracting perl.exp"
16
17rm -f perl.exp
18echo "#!" > perl.exp
19
20sed -n '/^[A-Za-z]/ s/^/Perl_/p' old_global.sym >> perl.exp
21
22#
23# also add symbols from interp.sym
24# They are only needed if -DMULTIPLICITY is not set but it
25# doesn't hurt to include them anyway.
26sed -n '/^[A-Za-z]/ p' interp.sym >> perl.exp
27
28# extra globals not included above.
29cat <<END >> perl.exp
30perl_init_i18nl10n
31perl_init_i18nl14n
32perl_new_collate
33perl_new_ctype
34perl_new_numeric
36477c24 35perl_set_numeric_local
36perl_set_numeric_standard
ff68c719 37perl_alloc
38perl_construct
39perl_destruct
40perl_free
41perl_parse
42perl_run
43perl_get_sv
44perl_get_av
45perl_get_hv
46perl_get_cv
47perl_call_argv
48perl_call_pv
49perl_call_method
50perl_call_sv
51perl_requirepv
52END