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.

check-box-updates.sh 613B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. #
  3. # This script tries to locate boxes in scenarios which need to be updated
  4. #
  5. # Assumes openvibe is compiled and installed to dist/, and that we are in test/
  6. #
  7. SYSTEM=`uname -o`
  8. if [ $SYSTEM == "Cygwin" ]; then
  9. EXT="cmd"
  10. else
  11. EXT="sh"
  12. fi
  13. pushd .. >/dev/null
  14. echo Scenarios requiring update:
  15. find -iname "*xml" | grep "box-tutorials/\|test/\|bci-examples/" | grep -v dist | while read FN; do
  16. dist/openvibe-designer.$EXT --no-session-management --no-pause --no-gui --open "$FN" | grep -q -E ".*WARNING.*Scenario requires.*update.*box"
  17. if [ $? == 0 ]; then
  18. echo $FN
  19. fi
  20. done
  21. popd >/dev/null