Rev 3613 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/shUSAGE="Usage: make_zip zipfile directory"case "$1" in-h*|--h*) echo "$USAGE"; exit 0 ;;esacif [ $# != 2 ]; thenecho "$USAGE" 1>&2exit 100fiif [ "`echo $1 | sed 's/[A-Za-z/.][-/._A-Za-z0-9]*/x/'`" != "x" ]; thenecho "$0: Invalid zipfile name: $1" 1>&2exit 102fiif [ ! -d "$2" ]; thenecho "$0: Not a directory: $2" 1>&2exit 105ficd "$2"jar -cMf "$1" *