]> granicus.if.org Git - graphviz/commitdiff
ci: standardize shell scripts on the same e,u,x,o options
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Dec 2021 06:22:45 +0000 (22:22 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 12 Dec 2021 19:21:33 +0000 (11:21 -0800)
All these scripts have the same expectation, of failing on anything unexpected.
So setting the same options the same way everywhere leads to more consistency
and predictability.

ci/build.sh
ci/cygwin-build.sh
ci/install-packages.sh
ci/mingw-build.sh
ci/mingw-configure.sh
ci/mingw-install.sh
ci/mingw-make.sh
ci/out-of-source-build.sh
ci/out-of-source-configure.sh
ci/out-of-source-make.sh

index d0ae4e687a4443eada62227b3c45a985b6a30c60..205400bb843b41a6bfd3ea377c19b2b4c7e3b37c 100755 (executable)
@@ -1,9 +1,9 @@
 #!/usr/bin/env bash
 
-set -x
 set -e
-set -u
 set -o pipefail
+set -u
+set -x
 
 if [ -f /etc/os-release ]; then
     cat /etc/os-release
index 231ac8545ae35df1de134ec6ae39b2b3e11d60db..866393c5ecef39f9a28695a34d9588728346f83b 100644 (file)
@@ -1,6 +1,9 @@
 #!/usr/bin/env bash
 
-set -eux
+set -e
+set -o pipefail
+set -u
+set -x
 
 /cygwinsetup.exe --quiet-mode --wait --packages autoconf2.5
 /cygwinsetup.exe --quiet-mode --wait --packages automake
index c25f46a2d3edc269e9e5b5d572cad396cfb13262..a9a1d3064e3768fc0df4a49b8dc17ec0102941f1 100755 (executable)
@@ -1,6 +1,8 @@
 #!/usr/bin/env bash
 
 set -e
+set -o pipefail
+set -u
 set -x
 
 if [ "$( uname -s )" = "Darwin" ]; then
index d9c7328742171f8ec4ac7e4170f4cc73cace1a1f..f20b07b25dd21d257477541975f8e41dccfe1fa5 100644 (file)
@@ -1,6 +1,9 @@
 #!/usr/bin/env bash
 
-set -eux
+set -e
+set -o pipefail
+set -u
+set -x
 
 ci/mingw-install.sh
 
index 2e8756621d9940b23a1bca4d95efcdb493ac6ed7..24bedfa23887d8b4a30908d16c56cb8a7f5c24b1 100644 (file)
@@ -1,6 +1,9 @@
 #!/usr/bin/env bash
 
-set -eux
+set -e
+set -o pipefail
+set -u
+set -x
 
 ci/mingw-install.sh
 
index c321c7bea6a8a36e4e78f326802c5f9614a37bea..0b1f13328ffd07485ef3e879961903f4e022c6b9 100644 (file)
@@ -1,6 +1,9 @@
 #!/usr/bin/env bash
 
-set -eux
+set -e
+set -o pipefail
+set -u
+set -x
 
 pacman -S --noconfirm --needed \
     autoconf \
index d35b1837344c811ce0c150eb89dda37034f0369a..2c7b389f633e4d279b92edefef29aebdd3028370 100644 (file)
@@ -1,6 +1,9 @@
 #!/usr/bin/env bash
 
-set -eux
+set -e
+set -o pipefail
+set -u
+set -x
 
 ci/mingw-install.sh
 
index 196cccc3b1993460b128de07eeb30559647d8b46..ebd24ea4bc4c0ebf57753f57e81fd63f611ca1c5 100755 (executable)
@@ -3,9 +3,10 @@
 # this script does something close to the work flow end users may follow when
 # building Graphviz
 
-set -x
 set -e
 set -o pipefail
+set -u
+set -x
 
 # output some info for debugging
 uname -rms
index 5bc3fb241a483dd27592d5437aa047ce53c7ebb2..7effc2086c5ea505c82b2baf2ff9da86cbfa2a9c 100644 (file)
@@ -3,10 +3,10 @@
 # this script does something close to the work flow end users may follow when
 # building Graphviz
 
-set -x
-set -u
 set -e
 set -o pipefail
+set -u
+set -x
 
 # output some info for debugging
 uname -rms
index bacec2a43edbb305e8aca8cefbf001ac09602e7f..899d4148d1fc1a5a8bf9c1d084656bb86a9c6087 100644 (file)
@@ -3,9 +3,10 @@
 # this script does something close to the work flow end users may follow when
 # building Graphviz
 
-set -x
 set -e
 set -o pipefail
+set -u
+set -x
 
 # output some info for debugging
 uname -rms