Commit 6d479a69 authored by antoine's avatar antoine
Browse files

script

parent 5e74a3cb
Welcome to OSP's Etherpad!
This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!
Get involved with Etherpad at http://etherpad.org
Welcome to OSP's Etherpad!
This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!
Get involved with Etherpad at http://etherpad.org
INDEX='http://pads.osp.kitchen/p/meta-grand-est-index/export/txt'
curl $INDEX -o index.txt
while IFS= read -r line
while :
do
version="$(cut -d'-' -f4 <<<"$line")"
curl $line/export/txt -o projects/$version/base.mp
mpost -interaction=batchmode projects/$version/base.md
done < index.txt
curl $INDEX -o index.txt
while IFS= read -r line
do
version="$(cut -d'-' -f4 <<<"$line")"
if [ ! -d "projects/$version" ]; then
mkdir -p projects/$version/svg
fi
curl $line/export/txt -o projects/$version/base.mp
mpost -interaction=batchmode projects/$version/base.md
done < index.txt
sleep 5
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment