From b7812315bdef95898f16aed97f1c417069c19496 Mon Sep 17 00:00:00 2001 From: Uwe Schmitt <uwe.schmitt@id.ethz.ch> Date: Sun, 5 May 2019 21:42:37 +0200 Subject: [PATCH] update_installer.sh also removes cells with tag TODO --- setup_eth_course_rooms/update_installer.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup_eth_course_rooms/update_installer.sh b/setup_eth_course_rooms/update_installer.sh index 5d7e407..bad2bfa 100755 --- a/setup_eth_course_rooms/update_installer.sh +++ b/setup_eth_course_rooms/update_installer.sh @@ -25,7 +25,7 @@ SCP_TARGET=${REMOTE_LOGIN}:${REMOTE_WEB_FOLDER} # end of user settings, edits from here on only if you know what you do. -LOCAL_BUILD_FOLDER=/tmp/installer-build-tmp/ +LOCAL_BUILD_FOLDER=$(pwd)/build # create fresh folder structure to build archive with notebooks rm -rf ${LOCAL_BUILD_FOLDER} @@ -40,10 +40,12 @@ for NOTEBOOK in ${NOTEBOOKS}; do echo process ${NOTEBOOK} TARGET=${LOCAL_BUILD_FOLDER}/course/${NOTEBOOK} - nb-filter-cells -i $NOTEBOOK -t solution -o ${TARGET} + echo ${TARGET} + nb-filter-cells -i $NOTEBOOK -t solution | nb-filter-cells -t TODO -o ${TARGET} TARGET=${LOCAL_BUILD_FOLDER}/solutions/${NOTEBOOK%.ipynb}-with-solutions.ipynb - cp $NOTEBOOK ${TARGET} + nb-filter-cells -i $NOTEBOOK -t TODO -o ${TARGET} + # cp $NOTEBOOK ${TARGET} done echo scp graphics -- GitLab