#!/bin/bash # calls phantomjs to make screenshots # of each anchor in PROJECT then calls # imagemagick to resize them for preview # panel. The size of the screenshot # is defined in rasterize.js # nodescore@kiben.net # nodescore.kiben.net SERVER="http://10.80.80.130:8890" BASEDIR='8' PROJECT=$1 THUMBPATH="www/$BASEDIR/thumbs" if [ ! -d $THUMBPATH ]; echo creating $THUMBPATH then mkdir -p $THUMBPATH; fi ANCHORS=`grep '