1
0
Fork 0
mirror of https://github.com/cryb-to/cryb-to.git synced 2024-12-24 21:41:08 +00:00
cryb-to/tools/setprops.sh

24 lines
466 B
Bash
Raw Normal View History

2014-07-04 11:18:53 +00:00
#!/bin/sh
istext() {
local mimetype=$(svn propget svn:mime-type "$1" 2>/dev/null)
[ -z "$mimetype" ] || expr "$mimetype" : '^text/.' >/dev/null
}
(svn list -R ; svn stat | awk '$1 == "A" { print $2 }') | sort -u |
while read f ; do
[ -f "$f" ] || continue
istext "$f" || continue
case $f in
2014-07-10 13:33:08 +00:00
*rsaref*.[ch])
;;
2014-07-04 11:18:53 +00:00
*.sh|*.pl)
svn propset svn:executable \* $f
;&
*)
svn propset eol-style native $f
#svn propset svn:keywords "Cryb=%H" $f
2014-07-04 11:18:53 +00:00
;;
esac
done