summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-04-30 12:39:29 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-30 12:39:29 +0000
commit1a09d0c8ccea70c85d9bc6af71e7c83a5dfca14b (patch)
tree6e7a63dd9776189a0cd9af72037380516ec1d428 /installperl
parentaf130d4569250a70a5454519dc1efae1a891ab62 (diff)
downloadperl-1a09d0c8ccea70c85d9bc6af71e7c83a5dfca14b.tar.gz
Install s2p also as psed.
TODO: psed documentation? p4raw-id: //depot/perl@9915
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl25
1 files changed, 17 insertions, 8 deletions
diff --git a/installperl b/installperl
index 4a77415d91..c35482db93 100755
--- a/installperl
+++ b/installperl
@@ -393,6 +393,19 @@ if (! $versiononly && (-f 'cppstdin') && (! samepath($installbin, '.'))) {
chmod(0755, "$installbin/cppstdin");
}
+sub script_alias {
+ my ($installscript, $orig, $alias, $scr_ext) = @_;
+
+ safe_unlink("$installscript/pstruct$scr_ext");
+ if ($^O eq 'dos' or $Is_VMS or $^O eq 'transit') {
+ copy("$installscript/$orig$scr_ext",
+ "$installscript/$alias$scr_ext");
+ } else {
+ link("$installscript/$orig$scr_ext",
+ "$installscript/$alias$scr_ext");
+ }
+}
+
if (! $versiononly) {
# Install scripts.
@@ -405,14 +418,10 @@ if (! $versiononly) {
}
# pstruct should be a link to c2ph
- safe_unlink("$installscript/pstruct$scr_ext");
- if ($^O eq 'dos' or $Is_VMS or $^O eq 'transit') {
- copy("$installscript/c2ph$scr_ext",
- "$installscript/pstruct$scr_ext");
- } else {
- link("$installscript/c2ph$scr_ext",
- "$installscript/pstruct$scr_ext");
- }
+ script_alias('c2ph', 'pstruct');
+
+ # psed should be a link to s2p
+ script_alias('s2p', 'psed');
}
# Install pod pages. Where? I guess in $installprivlib/pod