3 # Written: Nov 1994 Wayne Scott (wscott@ichips.intel.com)
5 # Create the export list for perl.
6 # Needed by AIX to do dynamic linking.
8 # NOTE: If you're using 'old_embed.pl', don't use this script!
9 # Use 'old_perl_exp.SH' instead.
11 # This simple program relys on 'global.sym' being up to date
12 # with all of the global symbols that a dynamicly link library
13 # might want to access.
15 # All symbols have a Perl_ prefix because that's what embed.h
16 # sticks in front of them.
18 echo "Extracting perl.exp"
28 trap 'rm -f $global $interp $compat3' 0
29 trap 'exit 1' 1 2 3 13 15
30 grep '^[A-Za-z]' global.sym | sort >$global
31 grep '^[A-Za-z]' interp.sym | sort >$interp
32 grep '^[A-Za-z]' compat3.sym | sort >$compat3
33 comm -23 $global $compat3 | sed 's/^/Perl_/p' >> perl.exp
34 comm -12 $global $compat3 >> perl.exp
35 comm -12 $interp $compat3 | sed 's/^/Perl_/p' >> perl.exp
36 comm -23 $interp $compat3 >> perl.exp
39 sed -n '/^[A-Za-z]/ s/^/Perl_/p' global.sym interp.sym >> perl.exp
43 # extra globals not included above.
50 perl_set_numeric_local
51 perl_set_numeric_standard