Pass anything through to darcs and let it do the failing on bad commands
authorIan Lynagh <igloo@earth.li>
Fri, 13 Jan 2006 21:24:20 +0000 (21:24 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 13 Jan 2006 21:24:20 +0000 (21:24 +0000)
darcs-all

index 544d9cc..222c512 100644 (file)
--- a/darcs-all
+++ b/darcs-all
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+set -e
+
 top_dirs="nofib testsuite"
 
 default_repo_root="http://darcs.haskell.org/"
@@ -58,7 +60,6 @@ if test ! -d _darcs -o ! -d ghc; then
 fi
 
 case $1 in
-  push|pull|wh*) darcsall $*;;
   get)  shift; darcsget $*;;
-  *)    echo "syntax: ./darcs-all push|pull|whatsnew|get"; exit 1;;
+  *) darcsall $*;;
 esac