logging: Check if typescripts with a similar name already exist
[sunny256-utils.git] / keyw
blob59640290c41fa31b1d1529f4e01f1a498c41f4d6
1 #!/usr/bin/env bash
3 #=======================================================================
4 # keyw
5 # File ID: 881b567a-fc3c-11dd-9a35-0001805bf4b1
6 # Setter properties på tekstfiler sånn som jeg vil ha det.
7 # Valg:
8 # -k Bruk svk istedenfor svn.
9 # -u svn:eol-style settes ikke.
10 #=======================================================================
12 if [ "$1" = "-k" ]; then
13 CMD_SVN=svk
14 shift
15 else
16 CMD_SVN=svn
19 if [ "$1" != "-u" ]; then
20 for _k in "$@"; do
21 [ -f "$_k" ] && $CMD_SVN propset svn:eol-style native "$_k"
22 done
23 else
24 shift
27 for _k in "$@"; do
28 $CMD_SVN propdel cvs2svn:cvs-rev "$_k"
29 $CMD_SVN proplist -v "$_k"
30 done
32 # vim: set ts=4 sw=4 sts=4 et fo+=w fenc=utf8 :