#!/bin/zsh

setopt null_glob

if [ -e $1 ] 
then 
  rm $1
fi

zip -r $* -x ${2}/**/.svn/**/{*,.*} ${2}/**/*~

