gdbcvscheckout: Fix the directory check.
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index 9e39bf4..f95bb65 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -310,7 +310,26 @@ function pidof
   fi
 )}
 function sumlog { find "$@" ! -name config.log -name "*.log" -o -name "*.sum"; }
-function gdb-cvs-checkout { test -d gdb-cvs || cvs -z3 -d :pserver:anoncvs:@sourceware.org:/cvs/src checkout -d gdb-cvs gdb; }
+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