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
`; }
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
); }
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" \
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=""
! 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 $_;'; };