.checkPorts.sh 253 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. #
  3. # This script checks whether all patches from /ports dir are applicable
  4. #
  5. PATCHES=ports/*
  6. for p in $PATCHES
  7. do
  8. git apply --check $p
  9. if [[ "$?" == 0 ]]
  10. then
  11. echo $p is applicable
  12. else
  13. echo failed to apply $p
  14. exit 1
  15. fi
  16. done