summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorAndreas König <a.koenig@mind.de>2001-05-05 20:23:28 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-05 18:32:15 +0000
commitd38b618adccc72975870768057165000623f0d37 (patch)
tree078a8d5ca31b1825159d2131bbad46d2a4da57f1 /x2p
parent96e821d57e0ce06bdcf42060deb9cea0b0589546 (diff)
downloadperl-d38b618adccc72975870768057165000623f0d37.tar.gz
Re: bleadperl make install fails due to "psed"
Message-ID: <m3u22zg3y7.fsf@ak-71.mind.de> p4raw-id: //depot/perl@10000
Diffstat (limited to 'x2p')
-rwxr-xr-xx2p/Makefile.SH2
-rw-r--r--x2p/s2p.PL9
2 files changed, 10 insertions, 1 deletions
diff --git a/x2p/Makefile.SH b/x2p/Makefile.SH
index a0ba96a360..25085fc883 100755
--- a/x2p/Makefile.SH
+++ b/x2p/Makefile.SH
@@ -129,7 +129,7 @@ a2p$(OBJ_EXT): a2p.c a2py.c a2p.h EXTERN.h util.h INTERN.h \
$(CCCMD) a2p.c
clean:
- rm -f a2p *$(OBJ_EXT) $(plexe) $(plc) $(plm)
+ rm -f a2p psed *$(OBJ_EXT) $(plexe) $(plc) $(plm)
realclean: clean
rm -f core $(addedbyconf) all malloc.c
diff --git a/x2p/s2p.PL b/x2p/s2p.PL
index d215781dae..a24a2e2fe8 100644
--- a/x2p/s2p.PL
+++ b/x2p/s2p.PL
@@ -1960,5 +1960,14 @@ way you wish, provided you do not restrict others from doing the same.
close OUT or die "Can't close $file: $!";
chmod 0755, $file or die "Can't reset permissions for $file: $!\n";
+unlink 'psed';
+print "Linking s2p to psed.\n";
+if (defined $Config{d_link}) {
+ link 's2p', 'psed';
+} else {
+ unshift @INC, '../lib';
+ require File::Copy;
+ File::Copy::syscopy('s2p', 'psed');
+}
exec("$Config{'eunicefix'} $file") if $Config{'eunicefix'} ne ':';
chdir $origdir;