X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=.bashrc;h=5a18e3858ca20675cb1be36a66baeaf6b6713cef;hb=1338370fc6b59b667db799c2b3ef07e46e203cf4;hp=d5a994bfbdc656bc9b7d189fed3791ff4e35a794;hpb=34c69307755626d0ec5250b355e6bc028089ec2b;p=nethome.git diff --git a/.bashrc b/.bashrc index d5a994b..5a18e38 100644 --- a/.bashrc +++ b/.bashrc @@ -175,9 +175,9 @@ for file in $HOME/.bookmarks.html;do done export GREP_OPTIONS="--binary-files=without-match --directories=skip" if echo x|GREP_OPTIONS="--exclude=y" grep -q x 2>/dev/null;then - export GREP_OPTIONS="$GREP_OPTIONS --exclude=tags --exclude=TAGS --exclude=CVS --exclude=ChangeLog* --exclude=*.svn-base --exclude=*~" + export GREP_OPTIONS="$GREP_OPTIONS --exclude=tags --exclude=TAGS --exclude=ChangeLog* --exclude=*.svn-base --exclude=*~" # FIXME: grep(1) ignores subdirectories for --exclude. - #export GREP_OPTIONS="$GREP_OPTIONS --exclude=testsuite --exclude=.pc --exclude=.svn" + #export GREP_OPTIONS="$GREP_OPTIONS --exclude=testsuite --exclude=.pc --exclude=.svn --exclude=CVS --exclude=po" fi if [ -n "$PS1" ];then # set only in interactive sessions if [ ! -f /MOCK ];then @@ -245,7 +245,7 @@ function finame { find . -false ` `; } function mkcd { mkdir -p "$1"; cd "$1"; } function pushdmk { mkdir -p "$1"; pushd "$1"; } -function rsync {(unset rsync; nice -n20 rsync -v -e ssh --progress --stats --partial --rsync-path='nice -n20 rsync' "$@"; );} +function rsync {(unset rsync; nice -n20 rsync -v -e ssh --progress --stats --inplace --rsync-path='nice -n20 rsync' "$@"; );} function tohex { od -An -txC|tr -d '\n '|tr 'a-f' 'A-F';echo; } function edall { find -type f|while read -r i;do @@ -257,7 +257,7 @@ function mi { ( ); } function ctags {(unset ctags if [ $# -ne 0 -a '(' $# -ne 1 -o "$1" '!=' "--c-types=+px" ')' ];then ctags "$@";else - find -name testsuite -prune -o -name .pc -prune -o -name .svn -prune -o \ + find -name testsuite -prune -o -name gdbserver -prune -o -name .pc -prune -o -name .svn -prune -o \ -type f -a '!' -name tags -a '!' -name TAGS -a '(' -false \ -o -name "*.[chCy]" \ -o -name "*.cc" \ @@ -283,6 +283,7 @@ function cvs {(unset cvs local _opts _opts_d _now _line _o _opts_d="-d" if grep -iw '\(sources.redhat.com\|sourceware.org\):/cvs/src' CVS/Root &>/dev/null;then _opts_d="";fi + if grep -iw '\(cvs.fedoraproject.org\):/cvs/pkgs' CVS/Root &>/dev/null;then _opts_d="";fi if grep '^tests/kernel/syscalls/ptrace' CVS/Repository &>/dev/null;then _opts_d="";fi _now=false _line="" @@ -335,8 +336,7 @@ function gdbdevelcvscheckout {(set -ex ! test -d gdb-devel (set +x;CVSROOT=:pserver:anonymous@cvs.fedoraproject.org:/cvs/pkgs cvs checkout -d gdb-devel rpms/gdb/devel) cd gdb-devel - make test-srpm - rm `make verrel`.src.rpm + make sources );} function uri_escape { perl -MURI::Escape -le '$_=<>;chomp;print uri_escape $_;'; }; function uri_unescape { perl -MURI::Escape -le '$_=<>;chomp;print uri_unescape $_;'; };