#!/bin/sh

#DEBUG=echo
DEBUG=

for f in *.zip; do
    base="`echo $f | sed -e 's/\\.zip$//'`"
    if mkdir "$base"; then
        if (cd "$base" && $DEBUG unzip ../"$f"); then
	    : # nothing
	else
	    echo ""
	    echo "Problems in unzipping \"$f\""
	    if [ -z "$GOGO" ]; then
		exit 1
	    fi
	fi
    else
	echo "Could not mkdir \"$base\""
	exit 1
    fi
done
