#!/bin/sh
# zip -- front end for the WinZip command line interface to make it Unix-like

[ -n "$echo" ] && set -x

OPTIONS=''

while true
do
	case "$1" in
	-0)
		OPTIONS="$OPTIONS "'-e0'
		shift
		;;
	-[12])
		OPTIONS="$OPTIONS "'-es'
		shift
		;;
	-[34])
		OPTIONS="$OPTIONS "'-ef'
		shift
		;;
	-[5678])
		OPTIONS="$OPTIONS "'-en'
		shift
		;;
	-9)
		OPTIONS="$OPTIONS "'-ex'
		shift
		;;
	-r)
		OPTIONS="$OPTIONS "'-r -P'
		shift
		;;
        -*)
		OPTIONS="$OPTIONS $1"
		shift
		;;
	*)
		break
		;;
        esac
done

exec wzzip $OPTIONS "$@"
