2020-11-24 08:33:07 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
PAPER_ID=lorem-ipsum
|
|
|
|
PAPER_DIR="${PAPER_ID}-paper"
|
|
|
|
|
|
|
|
check()
|
|
|
|
{
|
|
|
|
config_file="$1"
|
|
|
|
echo "========================================================================================="
|
|
|
|
echo "*** TESTING $config_file"
|
|
|
|
echo "========================================================================================="
|
|
|
|
rm -rf "$PAPER_DIR"
|
2021-11-29 11:14:21 +01:00
|
|
|
cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --config-file "$config_file" --no-input --checkout master
|
2020-11-24 08:33:07 +01:00
|
|
|
cd "$PAPER_DIR"
|
|
|
|
make clean
|
|
|
|
make
|
2022-12-20 21:23:57 +01:00
|
|
|
if [[ "$config_file" != "configs/pw-thesis.yml" && "$config_file" != "configs/amu.yml" && "$config_file" != "configs/ieee-access.yml" && "$config_file" != "configs/amu-en.yml" ]]
|
2020-11-24 08:33:07 +01:00
|
|
|
then
|
|
|
|
make arxiv-$PAPER_ID.tar.gz
|
|
|
|
fi
|
|
|
|
cd ..
|
|
|
|
}
|
|
|
|
|
|
|
|
for config in configs/*.yml
|
|
|
|
do
|
|
|
|
check $config
|
|
|
|
done
|