From dfe1395887d220ca1b758d8af2b02f307403dad2 Mon Sep 17 00:00:00 2001
From: Fredrik Noring <noring@nocrew.org>
Date: Thu, 14 Oct 1999 22:41:34 +0200
Subject: [PATCH] Small fix.

Rev: bin/mkpackage.pike:1.2
---
 bin/mkpackage.pike | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/mkpackage.pike b/bin/mkpackage.pike
index 2ba217f6e7..e7b7e28eb2 100644
--- a/bin/mkpackage.pike
+++ b/bin/mkpackage.pike
@@ -71,7 +71,7 @@ class Package
     string setup = ("#!/bin/sh\n"
 		    "TARFILE=\"$1\"; shift; ARGS=''\n"
 		    "CONTENTS=`tar tf \"$TARFILE\" | sed -ne '/^"+
-		    replace(install_filename, ".", "\\.")+"/,$p'`\n"
+		    (replace(install_filename, ".", "\\.")/"/")[-1]+"/,$p'`\n"
 		    // Check all arguments for possible options.
 		    "while [ $# != 0 ]\n"
 		    "do\n"
-- 
GitLab