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"
+ export GREP_OPTIONS="$GREP_OPTIONS --exclude=tags --exclude=TAGS --exclude=CVS --exclude=ChangeLog* --exclude=*.svn-base --exclude=*~"
# FIXME: grep(1) ignores subdirectories for --exclude.
#export GREP_OPTIONS="$GREP_OPTIONS --exclude=testsuite --exclude=.pc --exclude=.svn"
fi
pidof "$@"
fi
)}
+function sumlog { find "$@" ! -name config.log -name "*.log" -o -name "*.sum"; }
+function gdbcvscheckout {(set -ex
+ ! test -d src
+ ! test -d gdb-cvs
+ (set +x;cvs -z3 -d :pserver:anoncvs:@sourceware.org:/cvs/src checkout gdb)
+ mv src gdb-cvs
+ cd gdb-cvs
+ (set +x;cvs update)
+ #(set +x;cvsignoresall)
+ (set +x;ignoresall)
+ );}
+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
+ );}
+function uri_escape { perl -MURI::Escape -le '$_=<>;chomp;print uri_escape $_;'; };
+function uri_unescape { perl -MURI::Escape -le '$_=<>;chomp;print uri_unescape $_;'; };
+function n { if [ "$1" = "-p" ];then renice +19 "$@";ionice -c3 "$@";else nice -n19 ionice -c3 "$@";fi };
ulimit -S -c 0
set +H