mtg-forge-ios/forge-gui/res/cardsfolder/mkzip.sh

17 lines
334 B
Bash
Raw Normal View History

#!/bin/sh
cd `dirname "$0"`
if ! zip --version | grep Info-ZIP >/dev/null; then
echo >&2 `basename "$0"`: error: this only works with Info-ZIP.
exit -1
fi
if [ -r cardsfolder.zip ]; then
echo Updating cardsfolder.zip...
else
echo Creating cardsfolder.zip...
fi
find . -name '*.txt' -print | zip -1@ouX cardsfolder.zip