aboutsummaryrefslogtreecommitdiffstats
path: root/create_arm_image.sh
diff options
context:
space:
mode:
authorJybz <j.biernacki+mga@free.fr>2020-11-29 14:42:09 +0100
committerJybz <j.biernacki+mga@free.fr>2020-11-29 14:42:09 +0100
commitdfb3e77a18e54213aa40192f1c2b7fae887da62c (patch)
tree6aae31decb247e8574c5494a5f7b3bde7833798f /create_arm_image.sh
parentf090cffedd995cae04a1ed2823eb9fbe52cbb7ea (diff)
downloadmageia4arm-dfb3e77a18e54213aa40192f1c2b7fae887da62c.tar
mageia4arm-dfb3e77a18e54213aa40192f1c2b7fae887da62c.tar.gz
mageia4arm-dfb3e77a18e54213aa40192f1c2b7fae887da62c.tar.bz2
mageia4arm-dfb3e77a18e54213aa40192f1c2b7fae887da62c.tar.xz
mageia4arm-dfb3e77a18e54213aa40192f1c2b7fae887da62c.zip
move auto log to ./log instead of ./
Diffstat (limited to 'create_arm_image.sh')
-rwxr-xr-xcreate_arm_image.sh5
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"