From 780226fa442abda5cb5b1018e998f50e7985e908 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sat, 17 Aug 2013 22:22:38 -0400 Subject: toolchain improvements --- unrpyc/find-gzip.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 unrpyc/find-gzip.sh (limited to 'unrpyc/find-gzip.sh') diff --git a/unrpyc/find-gzip.sh b/unrpyc/find-gzip.sh new file mode 100755 index 0000000..26e60c0 --- /dev/null +++ b/unrpyc/find-gzip.sh @@ -0,0 +1,10 @@ +#!/bin/sh +ZOPFLI="$(command -v zopfli)" +GZIP="$(command -v gzip)" +if [ -n $ZOPFLI ]; then + echo "$ZOPFLI" +elif [ -n $GZIP ]; then + echo "$GZIP -9" +else + exit 1 +fi -- cgit v1.2.3-54-g00ecf