run 176 B

1234567891011121314
  1. #!/bin/sh
  2. img="${1:-}"
  3. if [ -n "$img" ]; then
  4. img="RUN=${img%.*}"
  5. fi
  6. shift
  7. if [ $# -ge 1 ]; then
  8. type="$1"
  9. shift
  10. else
  11. type=run
  12. fi
  13. make RUN_ARGS="$*" "${type}" "${img}"