#!/bin/sh

# NOTE: make sure zip utility is installed and available. In SUSE system, you can
# install zip by running "sudo zypper install zip".

# don't forget to update these
VERSION=0.60.2

SOURCE=oletools-${VERSION}.zip
VIRUS_FILES_TO_REMOVE=(oletools-${VERSION}/tests/test-data/msodde/dde-test.docm oletools-${VERSION}/tests/test-data/msodde/dde-test.xlsm oletools-${VERSION}/tests/test-data/msodde/dde-test.docx oletools-${VERSION}/tests/test-data/msodde/dde-test-from-office2016.doc oletools-${VERSION}/tests/test-data/rtfobj/issue_251.rtf)

for f in "${VIRUS_FILES_TO_REMOVE[@]}"
do
	zip -d $SOURCE $f
done
