From 310ee25c01ae356b58b14d29499b8aeaa595ddfa Mon Sep 17 00:00:00 2001
From: Fredrik Noring <noring@nocrew.org>
Date: Thu, 14 Oct 1999 22:30:05 +0200
Subject: [PATCH] Added the (so far undocumented) shift flag which makes it
 possoble to use other install scripts than Pike's default script.

Rev: bin/install.pike:1.33
---
 bin/install.pike | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/bin/install.pike b/bin/install.pike
index 4bd65303e4..73ec4e30cf 100644
--- a/bin/install.pike
+++ b/bin/install.pike
@@ -284,6 +284,8 @@ void do_export()
 #"TARFILE=\"$1\"; shift
 ARGS=''
 
+INSTALL_SCRIPT='bin/install.pike'
+
 while [ $# != 0 ]
 do
     case \"$1\" in
@@ -299,8 +301,13 @@ COPYING and DISCLAIMER in the Pike distribution for more details.
               -h|\\
           --help) echo \"" + helptext + #"\"
                   exit 0 ;;
+
+              -s|\\
+        --script) shift
+                  INSTALL_SCRIPT=\"$1\" ;;
+
+               *) ARGS=\"$ARGS '`echo \\\"$1\\\" | sed -e \\\"s/'/'\\\\\\\"'\\\\\\\"'/g\\\"`'\" ;;
     esac
-    ARGS=\"$ARGS '`echo \\\"$1\\\" | sed -e \\\"s/'/'\\\\\\\"'\\\\\\\"'/g\\\"`'\"
     shift
 done
 "
@@ -312,7 +319,7 @@ done
 		   "  eval \"build/pike -DNOT_INSTALLED -mbuild/master.pike "
 		                "-Mbuild/lib/modules "
 		                "-Mlib/modules "
-		                "bin/install.pike \\\n"
+		                "\"$INSTALL_SCRIPT\" \\\n"
 		   "  TMP_LIBDIR=\"build/lib\"\\\n"
 		   "  LIBDIR_SRC=\"lib\"\\\n"
 		   "  SRCDIR=\"src\"\\\n"
-- 
GitLab