proupgrade.sh 462 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. basedir="$(dirname "$0")"
  3. [ "$(echo "$basedir" | cut -c1)" = '/' ] || basedir="$PWD/$basedir"
  4. awlsim_base="$basedir/.."
  5. set -e
  6. if ! [ -x "$awlsim_base/awlsim-test" -a -x "$awlsim_base/setup.py" ]; then
  7. echo "basedir sanity check failed"
  8. exit 1
  9. fi
  10. cd "$awlsim_base"
  11. find . -name '*.awlpro' \
  12. -a -type f \
  13. -a \! -path '*/tests/*-legacy/*' \
  14. -a \! -path '*/submodules/*' \
  15. -a \! -path '*/.*/*' \
  16. -exec ./awlsim-proupgrade --loglevel 3 '{}' \;