From: Jarkko Hietaniemi Date: Sun, 1 Mar 1998 12:14:44 +0000 (+0200) Subject: Re: [PATCH] 5.004_61: Makefile.SH (Re: 5.004_61: annoyingly missing patch) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bd656b61a06f544ae070cad87b364e39eafa7528;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] 5.004_61: Makefile.SH (Re: 5.004_61: annoyingly missing patch) p4raw-id: //depot/perl@775 --- diff --git a/Makefile.SH b/Makefile.SH index e21c370..c1689cd 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -405,7 +405,8 @@ perly.c: perly.y perly.h: perly.y -@sh -c true -SYM = global.sym interp.sym compat3.sym +# No compat3.sym here since and including the 5.004_50. +SYM = global.sym interp.sym perlio.sym thread.sym SYMH = perlvars.h thrdvar.h diff --git a/perl_exp.SH b/perl_exp.SH index 067ebec..f8fd973 100644 --- a/perl_exp.SH +++ b/perl_exp.SH @@ -38,31 +38,14 @@ echo "Extracting perl.exp" rm -f perl.exp echo "#!" > perl.exp -case "$bincompat3" in -y*) - global=/tmp/exp$$g - interp=/tmp/exp$$i - compat3=/tmp/exp$$c - grep '^[A-Za-z]' global.sym | sort >$global - grep '^[A-Za-z]' interp.sym | sort >$interp - grep '^[A-Za-z]' compat3.sym | sort >$compat3 - comm -23 $global $compat3 | sed 's/^/Perl_/' >> perl.exp - comm -12 $interp $compat3 | sed 's/^/Perl_/' >> perl.exp - comm -12 $global $compat3 >> perl.exp - comm -23 $interp $compat3 >> perl.exp - rm -f $global $interp $compat3 - ;; -*) - sed -n '/^[A-Za-z]/ s/^/Perl_/p' global.sym interp.sym >> perl.exp - expperlvars=/tmp/exp$$pv - expthrdvar=/tmp/exp$$tv - sed -n 's/^PERLVARI*(G\([^,]*\).*/Perl_\1/p' perlvars.h >> $expperlvars - sed -n 's/^PERLVARI*(T\([^,]*\).*/Perl_\1/p' thrdvar.h >> $expthrdvar - # The shebang line nicely sorts as the first one. - sort -o perl.exp -u perl.exp $expperlvars $expthrdvar - rm -f $expperlvars $expthrdvar - ;; -esac +# No compat3 since and including the 5.004_50. +# perlio.sym added later if needed. +syms=`ls -1 *.sym|egrep -v 'compat3|perlio'` + +sed -n '/^[A-Za-z]/ s/^/Perl_/p' $syms >> perl.exp + +sed -n 's/^PERLVAR.*(G\([^,]*\).*/Perl_\1/p' perlvars.h >> perl.exp +sed -n 's/^PERLVAR.*(T\([^,]*\).*/Perl_\1/p' thrdvar.h >> perl.exp # # If we use the PerlIO abstraction layer, add its symbols @@ -112,3 +95,8 @@ Perl_calloc Perl_realloc Perl_free END + +# The shebang line nicely sorts as the first one. +sort -o perl.exp -u perl.exp + +# eof