You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
242B

  1. #!/bin/bash
  2. # script argument
  3. ARG=$1
  4. # Rack base dir
  5. RACK_DIR="../.."
  6. # build plugin
  7. make
  8. # quit if compiling fails
  9. [[ $? != 0 ]] && exit 1
  10. # build and run
  11. if [[ ${ARG} == "run" ]]; then
  12. pushd $RACK_DIR
  13. make run
  14. popd
  15. fi