From 68acb252d0048893387d95ac2badeef03f24e4fd Mon Sep 17 00:00:00 2001 From: aliriza Date: Mon, 7 Nov 2022 12:14:24 +0000 Subject: [PATCH] update scripts --- buildall.sh | 8 +++++--- update.sh | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/buildall.sh b/buildall.sh index 52276766..fa1071d4 100644 --- a/buildall.sh +++ b/buildall.sh @@ -2,13 +2,15 @@ set -e find -type f | grep ympbuild | while read line ; do echo -e "\033[33;1m=>> BINARY BUILD START:\033[;0m $line" - ymp build $(dirname $line) --verbose --no-source --ignore-dependency --allow-oem - echo -e "\033[33;1m<<= BINARY BUILD DONE:\033[;0m $line" + if ! ls $(dirname $line)/*$(uname -m).ymp ; then + ymp build $(dirname $line) --verbose --no-source --ignore-dependency --allow-oem + fi + echo -e "\033[33;1m<<= BINARY BUILD DONE:\033[;0m $line" done [[ -d output ]] && rm -rf output mkdir -p output echo "

YMP index:


" > output/index.html -find -type f | grep ".ymp$" | sort -V | while read line ; do +find -type f | grep "$(uname -m).ymp$" | sort -V | while read line ; do mv $line output echo "* $(basename $line)
" >> output/index.html done diff --git a/update.sh b/update.sh index 2b50405d..f1c2b867 100644 --- a/update.sh +++ b/update.sh @@ -1,8 +1,10 @@ #!/bin/bash find -type f | grep ympbuild | while read line ; do echo -e "\033[33;1m=>> SOURCE BUILD START:\033[;0m $line" - ymp build $(dirname $line) --verbose --no-binary --ignore-dependency --allow-oem + if ! ls $(dirname $line)/*.source.ymp ; then + ymp build $(dirname $line) --verbose --no-binary --ignore-dependency --allow-oem echo -e "\033[33;1m<<= SOURCE BUILD DONE:\033[;0m $line" + fi done [[ -d output ]] && rm -rf output mkdir -p output