A toolkit for exercising collective conditions for openness, access and authorship. https://vvvvvvaria.org/not-for-any/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
466 B

FOLDERS=$(ls -d */);
#echo "$FOLDERS";
for FOLDER in $FOLDERS; do
echo "-----";
echo "folder: $FOLDER";
for MD in $(ls $FOLDER*.md); do
echo "md: $MD";
PDF=$(echo $MD | sed 's/\.md/\.pdf/');
ODT=$(echo $MD | sed 's/\.md/\.odt/');
echo "pdf: $PDF";
echo "odt: $ODT";
# Make PDF
pandoc \
--pdf-engine=weasyprint \
-c Make.css \
"$MD" -o "$PDF";
# Make ODT file (Libre Writer / Word)
pandoc \
"$MD" -o "$ODT";
done
done