#!/bin/bash # Create a zip file of all the tests for separate distribution. ZIP="dawg-tests-$(date +"%04Y-%02m-%02d").zip" if [ -e "$ZIP" ] then print "Zip file '$ZIP' already exists - will not overwrite" 1>&2 exit 1 fi rm -f *~ FILES="README.txt dawg-tests.n3 dawg-data-* dawg-query-* dawg-result-*" chmod +r $FILES chmod -x $FILES zip -q "$ZIP" $FILES