Merge "Modify relative paths of lib, elements for packaging"

This commit is contained in:
Jenkins 2013-07-31 11:04:03 +00:00 committed by Gerrit Code Review
commit 5b37036c88
3 changed files with 16 additions and 3 deletions

View File

@ -27,7 +27,13 @@ export DIB_ENV=$(export)
SCRIPTNAME=$(basename $0)
SCRIPT_HOME=$(dirname $0)
export _LIB=$(dirname $0)/../lib
if [ -d $SCRIPT_HOME/../share/diskimage-builder ]
then
export _PREFIX=$SCRIPT_HOME/../share/diskimage-builder
else
export _PREFIX=$SCRIPT_HOME/..
fi
export _LIB=$_PREFIX/lib
source $_LIB/die
IS_RAMDISK=0

View File

@ -18,7 +18,14 @@
set -e
SCRIPTNAME=$(basename $0)
export _LIB=$(dirname $0)/../lib
SCRIPT_HOME=$(dirname $0)
if [ -d $SCRIPT_HOME/../share/diskimage-builder ]
then
export _PREFIX=$SCRIPT_HOME/../share/diskimage-builder
else
export _PREFIX=$SCRIPT_HOME/..
fi
export _LIB=$_PREFIX/lib
source $_LIB/die
function show_options () {

View File

@ -36,7 +36,7 @@ export ARCH
export DIB_NO_TMPFS=${DIB_NO_TMPFS:-0}
# Set via the CLI normally.
# IMAGE_ELEMENT=
_BASE_ELEMENT_DIR=$(dirname $0)/../elements
_BASE_ELEMENT_DIR=$_PREFIX/elements
ELEMENTS_PATH=${ELEMENTS_PATH:+"$ELEMENTS_PATH:$_BASE_ELEMENT_DIR"}
export ELEMENTS_PATH=${ELEMENTS_PATH:-$_BASE_ELEMENT_DIR}
export DIB_OFFLINE=${DIB_OFFLINE:-''}