gdb-cvs-checkout: Fix.
authorlace <>
Sun, 7 Dec 2008 20:54:27 +0000 (20:54 +0000)
committerlace <>
Sun, 7 Dec 2008 20:54:27 +0000 (20:54 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 9e39bf4..f801e48 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -310,7 +310,14 @@ 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 gdb-cvs-checkout {(set -ex
+       test -d cvs || 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)
+       );}
 
 ulimit -S -c 0
 set +H