mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-12 21:08:45 +00:00
23 lines
512 B
Bash
Executable File
23 lines
512 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
BASEDIR=$(dirname "$0")/..
|
|
|
|
mkdir -p $BASEDIR/target
|
|
|
|
for i in {01..13} ; do
|
|
if [ $i -eq 5 ]
|
|
then
|
|
if [ -f $BASEDIR/target/assignment05.zip ]; then
|
|
rm $BASEDIR/target/assignment05.zip
|
|
fi
|
|
zip -rj $BASEDIR/target/assignment05.zip $BASEDIR/assets/why3/assignment05
|
|
continue
|
|
fi
|
|
if [ -f $BASEDIR/target/assignment$i.zip ]; then
|
|
rm $BASEDIR/target/assignment$i.zip
|
|
fi
|
|
zip -rj $BASEDIR/target/assignment$i.zip $BASEDIR/src/assignments/assignment$i
|
|
done
|