]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - INSTALL/all_in_one.sh
Display warning message if ISO file has an invalid size.
[Ventoy.git] / INSTALL / all_in_one.sh
index d87f713c583c8d1207259a3dd9d7c3bdc6610876..a01eefdd0ad2d066bf4b3c7fa8d47e3b11bc4f00 100644 (file)
@@ -1,32 +1,28 @@
 #!/bin/sh
 
 VTOY_PATH=$PWD/..
-LOGCON=$2
 
-logci() {
-    if [ -n "$LOGCON" ]; then
-        echo $* > $LOGCON
-    fi
-}
+LOG=$VTOY_PATH/DOC/build.log
+[ -f $LOG ] && rm -f $LOG
 
 cd $VTOY_PATH/DOC
-logci "prepare_env ..."
+echo "prepare_env ..."
 sh prepare_env.sh
 
 export PATH=$PATH:/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin:/opt/aarch64--uclibc--stable-2020.08-1/bin
 
 
-logci "build grub2 ..."
+echo "build grub2 ..."
 cd $VTOY_PATH/GRUB2
-sh buildgrub.sh || exit 1
+sh buildgrub.sh >> $LOG 2>&1 || exit 1
 
-logci "build ipxe ..."
+echo "build ipxe ..."
 cd $VTOY_PATH/IPXE
-sh buildipxe.sh || exit 1
+sh buildipxe.sh >> $LOG 2>&1 || exit 1
 
-logci "build edk2 ..."
+echo "build edk2 ..."
 cd $VTOY_PATH/EDK2
-sh buildedk.sh || exit 1
+sh buildedk.sh >> $LOG 2>&1 || exit 1
 
 
 
@@ -78,8 +74,7 @@ if [ "$1" = "CI" ]; then
     sed "s/VENTOY_VERSION=.*/VENTOY_VERSION=\"$Ver\"/"  -i ./grub/grub.cfg
 fi
 
-logci "packing ventoy-$Ver ..."
-sh ventoy_pack.sh $1 || exit 1
+echo "packing ventoy-$Ver ..."
+sh ventoy_pack.sh $1 >> $LOG 2>&1 || exit 1
 
-logci "==== finish ===="
 echo -e '\n============== SUCCESS ==================\n'