rpmbuildlocal: +nice
authorlace <>
Sat, 22 Dec 2007 17:31:41 +0000 (17:31 +0000)
committerlace <>
Sat, 22 Dec 2007 17:31:41 +0000 (17:31 +0000)
+FIXME: grep(1) ignores subdirectories for --exclude.
ctags: Fix the `.svn' skipping.
cvs: +`tests/kernel/syscalls/ptrace' `-d' exclusion.

.bashrc

diff --git a/.bashrc b/.bashrc
index 289a0f9..669e0b3 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -152,7 +152,7 @@ alias disass='objdump -D --target=binary --architecture=i386'
 alias cal='cal -m'
 alias vncreadonly='vncviewer -FullColor -Shared -ViewOnly'
 alias diff='diff -u'
-alias rpmbuildlocal='rpmbuild --define "_topdir $PWD" --define "_builddir $PWD" --define "_rpmdir $PWD" --define "_sourcedir $PWD" --define "_specdir $PWD" --define "_srcrpmdir $PWD"'
+alias rpmbuildlocal='nice rpmbuild --define "_topdir $PWD" --define "_builddir $PWD" --define "_rpmdir $PWD" --define "_sourcedir $PWD" --define "_specdir $PWD" --define "_srcrpmdir $PWD"'
 alias gdbn='gdb -nx --command=~/.gdbinit'
 
 # '2>/dev/null' to prevent: unalias: x: not found
@@ -175,7 +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"
+       export GREP_OPTIONS="$GREP_OPTIONS --exclude=tags --exclude=TAGS --exclude=CVS --exclude=ChangeLog*"
+       # FIXME: grep(1) ignores subdirectories for --exclude.
+       #export GREP_OPTIONS="$GREP_OPTIONS --exclude=testsuite --exclude=.pc --exclude=.svn"
 fi
 if [ -n "$PS1" ];then  # set only in interactive sessions
        export PS1='[bash]${LOGNAME}@${HOSTNAME}:${PWD}# '
@@ -243,7 +245,7 @@ function mi { (
        ); };export -f 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 -o \
+               find -name testsuite -prune -o -name .pc -prune -o -name .svn -prune -o \
                                -type f -a '!' -name tags -a '!' -name TAGS -a '(' -false \
                                                -o -name "*.[chC]" \
                                                -o -name "*.cc"    \
@@ -267,7 +269,9 @@ function diffc { diff -u "$@"|grep -v '^\(Only in \|Binary files\)'; }; export -
 function diffi { diffc -X ~/.diffi.list "$@"; }; export -f diffi
 function cvs {(unset cvs;
        local _opts _opts_d _now _line _o
-       if grep -iw '\(sources.redhat.com\|sourceware.org\):/cvs/src' CVS/Root &>/dev/null;then _opts_d="";else _opts_d="-d";fi
+       _opts_d="-d"
+       if grep -iw '\(sources.redhat.com\|sourceware.org\):/cvs/src' 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=""
        _opts=""