Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1.  
  2. function unrevisionedFiles()
  3. {
  4.     # notice: svn doesnt consider hidden files like main.cpp~
  5.     svn status | grep '^?' | awk '{print $2}';
  6. }
  7.  
  8. function removeunrevisionedFiles()
  9. {
  10.     unrevisionedFiles | xargs -I % sh -c "echo %; rm -rf %";
  11. }
  12.  
  13. function lineending()
  14. {
  15.     svn propset svn:eol-style native $1;
  16. }
  17.  
  18. function lineendings()
  19. {
  20.     find . -type f -exec dos2unix {} \;
  21.     svn propset svn:eol-style native --recursive .;
  22.     #for xml files: svn propset svn:mime-type text/xml --recursive .;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement