Utilize new "cvsutil":
authorshort <>
Mon, 4 Mar 2002 02:02:41 +0000 (02:02 +0000)
committershort <>
Mon, 4 Mar 2002 02:02:41 +0000 (02:02 +0000)
+alias cvsfiles
+alias cvsignores
+alias cvsignoresall
+alias cvsignoresrm
+alias cvsignoresrmall
+alias cvsignoresallrm=alias cvsignoresrmall
-function cvsfiles
-function cvsignore
-function cvsignorerm
-function cvsignoreall
-function cvsignoreallrm

.bashrc

diff --git a/.bashrc b/.bashrc
index ab199d8..cf1d026 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -43,6 +43,12 @@ alias maple="ssh -t vega.fjfi.cvut.cz maple"
 alias vi='vim'
 alias grepb='grep --binary-files=binary'
 alias L='lynx'
+alias cvsfiles='cvsutil --files --print'
+alias cvsignores='cvsutil --ignores --print'
+alias cvsignoresall='cvsutil --ignores --workings --print'
+alias cvsignoresrm='cvsutil --ignores --rm'
+alias cvsignoresrmall='cvsutil --ignores --workings --rm'
+alias cvsignoresallrm='cvsutil --ignores --workings --rm'
 
 weberr="/var/log/httpd/error/klokan.error_log"
 if [ -f "$weberr" ];then alias weberr='tail "$weberr"';fi
@@ -69,24 +75,6 @@ function cvsdiff    { cvs diff   "$@" 2>&1|pipebuf -q|             less; }; expo
 function cvsdiffi   { cvs diff   "$@" 2>&1|pipebuf -q|grep -v '^?'|less; }; export -f cvsdiffi
 function cvsupdate  { cvs update "$@" 2>&1|pipebuf -q|             less; }; export -f cvsupdate
 function cvsupdatei { cvs update "$@" 2>&1|pipebuf -q|grep -v '^?'|less; }; export -f cvsupdatei
-function cvsfiles {
-       for i in `find . -name Entries|grep '/CVS/Entries$'`;do
-               j="`echo "$i"|sed 's,CVS/Entries$,,'`"
-               sed -n 's,^/\([^/]*\)/[^-].*$,'"$j"'\1,p' <$i
-               done \
-               | sed 's%^\./%%'
-       }; export -f cvsfiles
-function cvsignore {
-       for i in `find . -name .cvsignore`;do
-               j="`echo "$i"|sed 's,\.cvsignore$,,'`"
-               sed -n 's,^.*$,'"$j"'&,p' <$i
-               done
-       }; export -f cvsignore
-function cvsignorerm { cvsignore | xargs rm -f; }; export -f cvsignorerm
-function cvsignoreall {
-       (find -type f|sed -e '\#/CVS/[^/]*$#d' -e 's#^\./##';cvsfiles)|sort|uniq -c|sed -n "s/^ *1`echo -e '\t'`//p"
-       }; export -f cvsignoreall
-function cvsignoreallrm { cvsignoreall | xargs rm -f; }; export -f cvsignoreallrm
 
 function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }; export -f wclines
 function ulimitme { ulimit -m 100000 -d 150000 -v 200000; }; export -f ulimitme