gdbcvscheckout: Fix the directory check.
authorjkratoch <>
Fri, 6 Mar 2009 16:42:53 +0000 (16:42 +0000)
committerjkratoch <>
Fri, 6 Mar 2009 16:42:53 +0000 (16:42 +0000)
+gdbdevelcvscheckout

.bashrc

diff --git a/.bashrc b/.bashrc
index 701f11e..f95bb65 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -311,13 +311,22 @@ function pidof
 )}
 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)
+       ! 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 };