Merge "Modify relative paths of lib, elements for packaging"
This commit is contained in:
commit
5b37036c88
@ -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
|
||||
|
@ -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 () {
|
||||
|
@ -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:-''}
|
||||
|
Loading…
Reference in New Issue
Block a user