[Lunar-commits] <moonbase> Subject: makeself: don't be interactive, and work with VirtualBox 4

Zachary McGrew zmcgrew at lunar-linux.org
Tue Mar 22 23:10:23 CET 2011


commit 8ae17510aeb539582a0ac012b097721603c3b328
Author: Paul Bredbury <brebs at sent.com>
Date:   Tue Jan 11 17:17:41 2011 -0800

    Subject: makeself: don't be interactive, and work with VirtualBox 4
    
    Keeping .sh at the end of the command filename is pointless. But I dunno what it will break, so am using a symlink.
---
 archive/makeself/BUILD     |    8 +++++++-
 archive/makeself/DETAILS   |    2 +-
 archive/makeself/PRE_BUILD |    6 +++++-
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/archive/makeself/BUILD b/archive/makeself/BUILD
index 023da70..83a8cb5 100644
--- a/archive/makeself/BUILD
+++ b/archive/makeself/BUILD
@@ -8,6 +8,12 @@
   mkdir -p /usr/share/doc/makeself                      &&
   install -m 0644 makeself.lsm /usr/share/doc/makeself  &&
   install -m 0644 makeself.1.gz /usr/man/man1
-  
+
+  pushd .  &&
+  cd /usr/bin  &&
+  # To be recognized by VirtualBox 4
+  ln -sfn makeself.sh makeself  &&
+  ln -sfn makeself-header.sh makeself-header  &&
+  popd
 
 ) > $C_FIFO 2>&1
diff --git a/archive/makeself/DETAILS b/archive/makeself/DETAILS
index 4c5d53a..1e33666 100644
--- a/archive/makeself/DETAILS
+++ b/archive/makeself/DETAILS
@@ -5,7 +5,7 @@
       SOURCE_VFY=sha1:803ca42ea64e51af72a4ee50b4d8f7a6107c926d
         WEB_SITE=http://www.megastep.org/makeself/
          ENTERED=20040520
-         UPDATED=20100711
+         UPDATED=20101222
            SHORT="Make self-extractable archives"
 cat << EOF
 makeself.sh is a small shell script that generates a self-extractable
diff --git a/archive/makeself/PRE_BUILD b/archive/makeself/PRE_BUILD
index 1e1caed..70f40e6 100644
--- a/archive/makeself/PRE_BUILD
+++ b/archive/makeself/PRE_BUILD
@@ -2,7 +2,11 @@
 
   cd $BUILD_DIRECTORY  &&
 
-  sh $SOURCE_CACHE/$SOURCE
+  # Don't wait for user to press a key
+  cp $SOURCE_CACHE/$SOURCE .  &&
+  sedit "s:; read junk::1" $SOURCE  &&
+
+  sh $SOURCE
 
 )
 


More information about the Lunar-commits mailing list