[jbossnative-commits] JBoss Native SVN: r1376 - trunk/build/install.

jbossnative-commits at lists.jboss.org jbossnative-commits at lists.jboss.org
Wed Feb 6 05:07:43 EST 2008


Author: mladen.turk at jboss.com
Date: 2008-02-06 05:07:43 -0500 (Wed, 06 Feb 2008)
New Revision: 1376

Modified:
   trunk/build/install/makeself.sh
Log:
Add --target option to mkself so we can use absolute path for install

Modified: trunk/build/install/makeself.sh
===================================================================
--- trunk/build/install/makeself.sh	2008-02-06 09:50:00 UTC (rev 1375)
+++ trunk/build/install/makeself.sh	2008-02-06 10:07:43 UTC (rev 1376)
@@ -108,6 +108,7 @@
     echo "    --nowait        : Do not wait for user input after executing embedded"
     echo "                      program from an xterm"
     echo "    --lsm file      : LSM file describing the package"
+    echo "    --target file   : Specify absolute target location"
     echo
     echo "Do not forget to give a fully qualified startup script name"
     echo "(i.e. with a ./ prefix if inside the archive)."
@@ -120,6 +121,7 @@
 else
     COMPRESS=Unix
 fi
+TARGET="."
 KEEP=n
 CURRENT=n
 NOX11=n
@@ -198,6 +200,11 @@
 	APPEND=y
 	shift
 	;;
+    --target)
+	KEEP=y
+	TARGET="$2"
+	shift 2
+	;;
     --lsm)
 	LSM_CMD="cat \"$2\" >> \"\$archname\""
 	shift 2
@@ -250,7 +257,11 @@
     if test "$CURRENT" = y; then
 	archdirname="."
     else
-	archdirname=`basename "$1"`
+	if test "$TARGET" = "."; then
+	    archdirname=`basename "$1"`
+	else
+	    archdirname=$TARGET
+	fi
     fi
 
     if test $# -lt 3; then




More information about the jbossnative-commits mailing list