X-Git-Url: http://git.wpitchoune.net/gitweb/?p=www.git;a=blobdiff_plain;f=psensor-www-update.sh;h=6dd761f124dd5135adcded51ec911757b92a1d2b;hp=61a5855a2e73fb70af8ea7d2cb8238aa9a76f192;hb=458388cf2be835836e8eaadb57eaff099bc35a26;hpb=cbf568613d35a805f945ba678cde7781bbf745db;ds=sidebyside diff --git a/psensor-www-update.sh b/psensor-www-update.sh index 61a5855..6dd761f 100755 --- a/psensor-www-update.sh +++ b/psensor-www-update.sh @@ -5,15 +5,23 @@ set -e GIT_DIR=git if [ ! -d $GIT_DIR/psensor ]; then + echo "GIT clone" git clone http://git.wpitchoune.net/psensor.git $GIT_DIR/psensor else + echo "GIT pull" git -C $GIT_DIR/psensor pull fi -asciidoctor $GIT_DIR/psensor/NEWS -D www/psensor -asciidoctor $GIT_DIR/psensor/README -D www/psensor +SDIR=`dirname $0` +RDIR=`realpath $SDIR` -asciidoctor $GIT_DIR/psensor/doc/faq.txt -D www/psensor -asciidoctor $GIT_DIR/psensor/doc/TODO.txt -D www/psensor +OPTS="-a linkcss -a docinfodir=$RDIR" -asciidoctor src/psensor/index.adoc -D www/psensor +asciidoctor $OPTS $GIT_DIR/psensor/NEWS -D www/psensor +asciidoctor $OPTS $GIT_DIR/psensor/README -D www/psensor + +asciidoctor $OPTS $GIT_DIR/psensor/doc/faq.txt -D www/psensor +asciidoctor $OPTS $GIT_DIR/psensor/doc/TODO.txt -D www/psensor + +asciidoctor $OPTS src/psensor/index.adoc -D www/psensor +asciidoctor $OPTS src/psensor/ubuntu.adoc -D www/psensor