gdbcvscheckout: Fix the sanity check.
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index f801e48..90c5518 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -310,14 +310,16 @@ function pidof
   fi
 )}
 function sumlog { find "$@" ! -name config.log -name "*.log" -o -name "*.sum"; }
-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)
+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 uri_escape   { perl -MURI::Escape -le '$_=<>;chomp;print uri_escape   $_;'; };
+function uri_unescape { perl -MURI::Escape -le '$_=<>;chomp;print uri_unescape $_;'; };
 
 ulimit -S -c 0
 set +H