Author: jfrederic.clere(a)jboss.com
Date: 2008-01-22 08:36:55 -0500 (Tue, 22 Jan 2008)
New Revision: 1296
Modified:
trunk/build/unix/build.sh
Log:
Allow to install in a machine depend location.
Modified: trunk/build/unix/build.sh
===================================================================
--- trunk/build/unix/build.sh 2008-01-22 11:26:28 UTC (rev 1295)
+++ trunk/build/unix/build.sh 2008-01-22 13:36:55 UTC (rev 1296)
@@ -67,11 +67,13 @@
#
# Read local machine parameters.
TMPROOTBASE=/tmp
+TMPBUILDBASE=${build_top}
IPLOCAL=localhost
if [ -f $HOME/jbossnative.`uname -n` ]; then
. $HOME/jbossnative.`uname -n`
fi
export TMPROOTBASE
+export TMPBUILDBASE
export IPLOCAL
while [ "x" != "x$1" ]
@@ -358,12 +360,12 @@
package_src_dir=${build_top}
export package_src_dir
package_dist_dir=${build_top}/dist/${BUILD_TAG}
- package_output_dir=${build_top}/output/${BUILD_TAG}
+ package_output_dir=${TMPBUILDBASE}/output/${BUILD_TAG}
else
package_src_dir=${build_working_dir}/${package_src_name}
export package_src_dir
package_dist_dir=${build_working_dir}/${package_src_name}/dist/${BUILD_TAG}
- package_output_dir=${build_working_dir}/${package_src_name}/output/${BUILD_TAG}
+ package_output_dir=${TMPBUILDBASE}/${package_src_name}/output/${BUILD_TAG}
fi
# Override a shell command
@@ -849,7 +851,7 @@
fi
}
-# Only buid binaries?
+# Only build binaries?
if [ -d srclib ]; then
buildbin ${build_output_dir}
exit 0
@@ -990,7 +992,6 @@
fi
# generate a list of dependencies
-package_output_dir=${build_working_dir}/${package_src_name}/output/${BUILD_TAG}
override ${build_top}/util/builddep $build_output_dir
${PACKAGE}.${build_version}.${BUILD_SYS}.${BUILD_CPU}.depends ${package_output_dir}
# create a chrootable environment for testing:
Show replies by date