#!/bin/bash cd `dirname $0` cd .. DIR=`pwd` WEBSITEDIR=$DIR/../espruinowebsite CMSDIR=$DIR/../espruinowebsite/cms BOARDIMGDIR=$WEBSITEDIR/www/img echo Updating Board Docs echo "
The Espruino Software will run on a variety of boards. The Espruino Board, currently on KickStarter, has been specially designed to complement our software and is the only board that we actively support. Please click on the thumbnails below to see diagrams of each board with all pins and their capabilities marked
" >> NewReference.html echo "" echo Updating Reference.html python scripts/build_docs.py grep functions.html -v -f scripts/website_banned_lines.txt >> NewReference.html rm functions.html mv NewReference.html ${CMSDIR}/Reference.html echo Updating ChangeLog.html sed -n "/FILEBEGIN/,/CHANGELOGBEGIN/p" ${CMSDIR}/ChangeLog.html > tmp.html bash $DIR/scripts/extract_changelog.sh | sed "s/\</g" >> tmp.html sed -n "/CHANGELOGEND/,/./p" ${CMSDIR}/ChangeLog.html >> tmp.html mv tmp.html ${CMSDIR}/ChangeLog.html cd $DIR/archives CURRENTZIP=`ls espruino_1v*.zip | sort | tail -1` echo Current zip = $CURRENTZIP cp -v $CURRENTZIP $WEBSITEDIR/www/files CURRENTVERSION=`echo $CURRENTZIP | sed -ne "s/.*\(1v[0-9][0-9]\).*/\1/p"` echo Current version = $CURRENTVERSION sed -i "s/1v[0-9][0-9]/$CURRENTVERSION/g" $CMSDIR/Download.html