logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

probe.sh (179B)


  1. set -e
  2. if [ "$#" -lt 3 ] ; then
  3. printf 'usage: %s var out command...\n' "$0" >&2
  4. exit 2
  5. fi
  6. var=$1
  7. out=$2
  8. shift 2
  9. if "$@" 2>"$out.log" ; then
  10. echo "#define $var 1"
  11. fi >"$out"