From 53d11060a37418278bb72a98161f7e323573c729 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 10 Feb 2022 00:59:08 +0500 Subject: [PATCH] Common: change shell scripts --- autogen.sh | 2 ++ config/dev-cross-i386 | 2 +- config/dev-cross-riscv64 | 2 +- config/dev-cross-x86_64 | 2 +- config/dev-native | 2 +- config/root-cross-i386-linux | 2 +- config/root-cross-riscv64-linux | 2 +- config/root-cross-x86_64-linux | 2 +- config/root-native | 2 +- pkgs/mruby/bin/setup | 6 ++---- pkgs/ruby/bin/setup | 6 ++---- 11 files changed, 14 insertions(+), 16 deletions(-) diff --git a/autogen.sh b/autogen.sh index 73181a8..91107fc 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,3 +1,5 @@ #!/bin/sh +set -eux + exec autoreconf -isf diff --git a/config/dev-cross-i386 b/config/dev-cross-i386 index a85cb8b..68ab966 100755 --- a/config/dev-cross-i386 +++ b/config/dev-cross-i386 @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -eux REPO="$(realpath "$(dirname "$(realpath "$0")")/..")" if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi diff --git a/config/dev-cross-riscv64 b/config/dev-cross-riscv64 index 0981e03..f208b7a 100755 --- a/config/dev-cross-riscv64 +++ b/config/dev-cross-riscv64 @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -eux REPO="$(realpath "$(dirname "$(realpath "$0")")/..")" if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi diff --git a/config/dev-cross-x86_64 b/config/dev-cross-x86_64 index 3d73bc2..73ffe10 100755 --- a/config/dev-cross-x86_64 +++ b/config/dev-cross-x86_64 @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -eux REPO="$(realpath "$(dirname "$(realpath "$0")")/..")" if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi diff --git a/config/dev-native b/config/dev-native index 4e454f7..08e191c 100755 --- a/config/dev-native +++ b/config/dev-native @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -eux REPO="$(realpath "$(dirname "$(realpath "$0")")/..")" if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi diff --git a/config/root-cross-i386-linux b/config/root-cross-i386-linux index b366acd..aebb811 100755 --- a/config/root-cross-i386-linux +++ b/config/root-cross-i386-linux @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -eux REPO="$(realpath "$(dirname "$(realpath "$0")")/..")" if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi diff --git a/config/root-cross-riscv64-linux b/config/root-cross-riscv64-linux index c817856..2cbfbb5 100755 --- a/config/root-cross-riscv64-linux +++ b/config/root-cross-riscv64-linux @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -eux REPO="$(realpath "$(dirname "$(realpath "$0")")/..")" if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi diff --git a/config/root-cross-x86_64-linux b/config/root-cross-x86_64-linux index 1e34d17..77343ef 100755 --- a/config/root-cross-x86_64-linux +++ b/config/root-cross-x86_64-linux @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -eux REPO="$(realpath "$(dirname "$(realpath "$0")")/..")" if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi diff --git a/config/root-native b/config/root-native index 4018f45..eacfc50 100755 --- a/config/root-native +++ b/config/root-native @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -eux REPO="$(realpath "$(dirname "$(realpath "$0")")/..")" if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi diff --git a/pkgs/mruby/bin/setup b/pkgs/mruby/bin/setup index 5cc837a..b0f0b0a 100755 --- a/pkgs/mruby/bin/setup +++ b/pkgs/mruby/bin/setup @@ -1,8 +1,6 @@ -#!/usr/bin/env bash +#!/bin/sh -set -euo pipefail -IFS=$'\n\t' -set -vx +set -eux bundle install diff --git a/pkgs/ruby/bin/setup b/pkgs/ruby/bin/setup index 5cc837a..b0f0b0a 100755 --- a/pkgs/ruby/bin/setup +++ b/pkgs/ruby/bin/setup @@ -1,8 +1,6 @@ -#!/usr/bin/env bash +#!/bin/sh -set -euo pipefail -IFS=$'\n\t' -set -vx +set -eux bundle install