12345678910111213141516171819 |
- #!/bin/bash
- APPLICATION_NAME=heron
- # If $METHOD is not set, use opt
- if [ -z $METHOD ]; then
- export METHOD=opt
- fi
- if [ -e ./unit/$APPLICATION_NAME-unit-$METHOD ]
- then
- ./unit/$APPLICATION_NAME-unit-$METHOD
- elif [ -e ./$APPLICATION_NAME-unit-$METHOD ]
- then
- ./$APPLICATION_NAME-unit-$METHOD
- else
- echo "Executable missing!"
- exit 1
- fi
|