hmn/cinera/update_annotations.sh

24 lines
618 B
Bash
Executable File

#!/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 git@gitssh.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
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/