function cvsignoresallrm { cvsutil --ignores --workings --rm "$@"; }
function svnignoresall { svn status |sed -n "s/^[?] //p" "$@"; }
function svnignoresallrm { svn status |sed -n "s/^[?] //p"|tr "\n" "\0"|xargs -0 rm -rf "$@"; }
+ function ignores { find -name "*.orig" -o -name ".#*" -o -name "*~" "$@"; }
+ function ignoresrm { ignores "$@" | xargs rm -f; }
+ function ignoresall { ignores -o -name "*.rej" "$@"; }
+ function ignoresallrm { ignoresall "$@" | xargs rm -f; }
function disass { objdump -D --target=binary --architecture=i386 "$@"; }
function cal {(unset cal; ( cal -m "$@"; ); );}
function vncreadonly { vncviewer -FullColor -Shared -ViewOnly "$@"; }
function rpmbuildlocal { nice rpmbuild --define "_topdir $PWD" --define "_builddir $PWD" --define "_rpmdir $PWD" --define "_sourcedir $PWD" --define "_specdir $PWD" --define "_srcrpmdir $PWD" --define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" "$@"; rmdir &>/dev/null BUILDROOT; }
function gdbn { gdb -nx --command=~/.gdbinit "$@"; }
function hd { od -Ax -tx1; }
+ function wget {(unset wget; ( wget --no-check-certificate "$@"; ); );}
'
export IGNOREEOF=10
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
export GDBHISTFILE="$HOME/.gdb_history"
export CVS_RSH="ssh"
export TZ=":/usr/share/zoneinfo/Europe/Prague"
+MAKEFLAGS=
+cpus="`getconf _NPROCESSORS_ONLN`"
+if [ -n "$cpus" ];then
+ MAKEFLAGS="$MAKEFLAGS -j$[$cpus+1]"
+fi
+unset cpus
# Do not: grep -w "$TERM" /etc/termcap >/dev/null || export TERM=vt220
# as Sun workaround as Debian misses: /etc/termcap
# expects: $uname_p