diff --git a/include/git.sh b/include/git.sh index 2f9359c..476dd2b 100755 --- a/include/git.sh +++ b/include/git.sh @@ -57,15 +57,13 @@ fetch_project_repo() [ -n "$xtree" ] && [ ! -d "src/coreboot/$xtree" ] && \ x_ ./update trees -f coreboot "$xtree" [ -z "$depend" ] || for d in $depend ; do - printf "'%s' needs dependency '%s'; grabbing '%s' now\n" \ - "$project" "$d" "$d" + printf "'%s' needs '%s'; grabbing '%s'\n" "$project" "$d" "$d" x_ ./update trees -f $d done clone_project for x in config/git/*; do - [ -f "$x" ] && nuke "${x##*/}" "src/${x##*/}" 2>/dev/null; \ - continue + [ -f "$x" ] && nuke "${x##*/}" "src/${x##*/}" 2>/dev/null done } diff --git a/include/lib.sh b/include/lib.sh index 5952b20..2fc17cf 100755 --- a/include/lib.sh +++ b/include/lib.sh @@ -181,8 +181,7 @@ mktarball() [ "${2%/*}" = "$2" ] || \ mkdir -p "${2%/*}" || $err "mk, !mkdir -p \"${2%/*}\"" printf "\nCreating archive: %s\n\n" "$2" - tar -c "$1" | xz -T$threads -9e > "$2" || \ - $err "mktarball 2, $1" + tar -c "$1" | xz -T$threads -9e > "$2" || $err "mktarball 2, $1" mksha512sum "$2" "${2##*/}.sha512" } @@ -190,8 +189,7 @@ mksha512sum() { ( [ "${1%/*}" != "$1" ] && x_ cd "${1%/*}" - sha512sum ./"${1##*/}" >> "$2" || \ - $err "!sha512sum \"$1\" > \"$2\"" + sha512sum ./"${1##*/}" >> "$2" || $err "!sha512sum \"$1\" > \"$2\"" ) || $err "failed to create tarball checksum" } diff --git a/script/roms b/script/roms index cb12745..8380e36 100755 --- a/script/roms +++ b/script/roms @@ -166,9 +166,8 @@ build_roms() cbfs "$cbrom" "elf/memtest86plus/memtest.bin" img/memtest [ "$payload_seabios" = "y" ] && build_seabios_roms [ "$payload_grub" != "y" ] || build_grub_roms "$cbrom" "grub" - [ "$payload_uboot" = "y" ] || return 0 - x_ cp "$_cbrom" "$cbrom" - build_uboot_roms + [ "$payload_uboot" = "y" ] && x_ cp "$_cbrom" "$cbrom" && \ + build_uboot_roms; return 0 } build_seabios_roms() diff --git a/script/trees b/script/trees index 1383b2a..34930a3 100755 --- a/script/trees +++ b/script/trees @@ -227,8 +227,7 @@ handle_makefile() run_make_command() { - check_cmake "$cdir" - [ -z "$mode" ] && check_autoconf "$cdir" + check_cmake "$cdir" && [ -z "$mode" ] && check_autoconf "$cdir" check_makefile "$cdir" || return 1 [ "$project" = "coreboot" ] && [ -z "$mode" ] && x_ \