hmn/cinera/update_annotations.sh

25 lines
737 B
Bash
Raw Normal View History

#!/bin/bash
if [ ! -e "cinera.conf" ]; then
echo "Can't find cinera.conf"
exit
fi
. cinera.conf
if [ ! -d $CINERA_HMML_PATH ]; then
git clone --config core.sshCommand="ssh -i ~/.ssh/gitlab-hmml" git@git.handmade.network:Annotation-Pushers/cinera_handmade.network.git $CINERA_HMML_PATH
fi
if [ ! -d $CINERA_HMML_PATH ]; then
echo "Failed to clone annotation repo"
exit
fi
cd $CINERA_HMML_PATH
git pull
2021-09-04 20:19:12 +00:00
chown -R $ANNOTATIONS_USER:$ANNOTATIONS_USER_GROUP $CINERA_HMML_PATH
cp -av $CINERA_HMML_PATH/cmuratori/hero/cinera__hero.css $CINERA_ASSETS_PATH/
cp -av $CINERA_HMML_PATH/miotatsu/riscy/cinera__riscy.css $CINERA_ASSETS_PATH/
cp -av $CINERA_HMML_PATH/pervognsen/bitwise/cinera__bitwise.css $CINERA_ASSETS_PATH/