Newer
Older
#! /bin/sh
#
# create_course_scripts_zip.sh
# Copyright (C) 2019-2021 Uwe Schitt <uwe.schmitt@id.ethz.ch>
#
# Distributed under terms of the MIT license.
#
FOLDER=ml_course_script_html
ARCHIVE=${FOLDER}.zip
rm -rf ${FOLDER} || true
mkdir ${FOLDER}
cp -R images ${FOLDER}
cp custom.html ${FOLDER}
for U in ??_*.ipynb; do
jupyter nbconvert --output-dir=${FOLDER} $U
done
rm ${ARCHIVE} || true
zip -r ${ARCHIVE} ${FOLDER}