diff options
Diffstat (limited to 'create_arm_image.sh')
-rwxr-xr-x | create_arm_image.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/create_arm_image.sh b/create_arm_image.sh index 01625b8..cf50d82 100755 --- a/create_arm_image.sh +++ b/create_arm_image.sh @@ -62,7 +62,8 @@ if [ 0 -ne $(echo "${CMD_LINE}" | grep -c '\-\-log') ]; then fi LOGFILE="$(echo "${CMD_LINE}" | sed -e 's/^.*--log //' | sed -e 's/[[:space:]]*--.*$//' )" if [ "x" = "${LOGFILE}x" ]; then - LOGFILE="./mga4arm-$(date "+%Y-%m-%d-%H:%M:%S")-${CONFIG_NAME}.log" + mkdir -p ./log + LOGFILE="./log/mga4arm-$(date "+%Y-%m-%d-%H:%M:%S")-${CONFIG_NAME}.log" LOGCMD="--log " else LOGCMD="--log ${lOGFILE}" @@ -127,6 +128,7 @@ while true; do shift 2 ;; --build-path) + mkdir -p ${2} INSTALL_PATH_P=$(readlink -f "${2}") shift 2 ;; @@ -278,6 +280,7 @@ NONFREE="${NONFREE_P:=0}" TAINTED="${TAINTED_P:=0}" #name of the image +# TODO Add nonfree if image contains nonfree drivers for example. DESKTOP_NAME="${DESKTOP:="noDE"}" IMAGE_BASE="Mageia-${MAGEIA_VERSION}-${TARGET}" IMAGE="${IMAGE_BASE}-${DESKTOP_NAME}.img" |