Uebungsaufgaben/Semester3/Java/Paralleles Programmieren/assets/patchfiles.sh
2024-12-19 23:55:07 +01:00

20 lines
212 B
Bash

#!/bin/bash
set -u -e
PATCHCODE="$1"
for i in *.zip ; do
NAME=${i/.zip}
echo $NAME
unzip $i
pushd $NAME
if ../$PATCHCODE ; then
popd
zip -9r $i $NAME
else
popd
fi
rm -rf $NAME
done