We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfc6c70 commit 7c0e443Copy full SHA for 7c0e443
tools/build_test_env.sh
@@ -14,6 +14,17 @@
14
# You should have received a copy of the GNU Lesser General Public License
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17
+pecho() { printf %s\\n "$*"; }
18
+log() {
19
+ [ "$#" -eq 0 ] || { pecho "$@"; return 0; }
20
+ while IFS= read -r log_line || [ -n "${log_line}" ]; do
21
+ log "${log_line}"
22
+ done
23
+}
24
+error() { log "ERROR: $@" >&2; }
25
+fatal() { error "$@"; exit 1; }
26
+try() { "$@" || fatal "'$@' failed"; }
27
+
28
PY_VER=2
29
while getopts :p: opt "$@"; do
30
case $opt in
0 commit comments