Skip to content
Snippets Groups Projects
Commit 0e9dd85e authored by Benoît Courty's avatar Benoît Courty
Browse files

Allow resuming PDF generation

parent c96af864
No related branches found
No related tags found
1 merge request!42Allow resuming PDF generation
Pipeline #20410 canceled
......@@ -28,16 +28,21 @@ read_env
BASE_URL=`sed -e 's/^"//' -e 's/"$//' <<<"$BASE_URL"`
rm -rf pdf/*
# rm -rf pdf/*
mkdir -p pdf
mkdir -p reduced-pdf
rm -rf reduced-pdf/*
mkdir -p reduced-pdf
cd pdf
echo "Start building PDF..."
for c in $(cat ../circo.txt)
do
if [ -f "../pdf/$c.pdf" ]; then
echo "$c.pdf already exists in reduced-pdf. Skipping."
continue
fi
echo "wget -O $c.pdf \"$BASE_URL/circo-print/$c\""
wget -O $c.pdf "$BASE_URL/circo-print/$c"
echo "$c Cr_ation de la vignette"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment