snac/scripts/update_html_repo.sh

22 lines
464 B
Bash
Executable File

#!/bin/sh
ba_export_html_dir='/home/jscaux/work/writing/lecture_notes/Bethe_Ansatz/export/html/'
ba_html_build_dir='/home/jscaux/work/writing/lecture_notes/Bethe_Ansatz_html/build/'
cd $ba_html_build_dir
cp -r $ba_export_html_dir* $ba_html_build_dir
# remove files which don't exist anymore
for file in $(ls -R)
do
if ! [ -f $BA_export_html_dir$file ]
then
rm $file
fi
done
echo 'Committing'
msg='Update '$(date +"%F %R")
git commit -a -m "$msg"