detectnotabfiles.sh 649 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. #------------------------------------------------------
  3. # Detect files that does not contains any tab inside
  4. #
  5. # Laurent Destailleur - eldy@users.sourceforge.net
  6. #------------------------------------------------------
  7. # Usage: fixnotabfiles.sh [list|fix]
  8. #------------------------------------------------------
  9. # Syntax
  10. if [ "x$1" != "xlist" -a "x$1" != "xfix" ]
  11. then
  12. echo "Usage: fixnotabfiles.sh [list|fix]"
  13. fi
  14. # To detec
  15. if [ "x$1" = "xlist" ]
  16. then
  17. find build \( -iname "*.sh" -o -iname "*.spec" \) -exec grep -l -P '\t' {} \;
  18. fi
  19. # To convert
  20. if [ "x$1" = "xfix" ]
  21. then
  22. echo Feature not implemented. Please fix files manually.
  23. fi