From: Kern Sibbald Date: Mon, 7 Jan 2013 09:57:22 +0000 (+0100) Subject: Add kernsconf and upload X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b5dabf560fbe6ff0266c7283eae67bebbf34b0d0;p=bacula%2Fdocs Add kernsconf and upload --- diff --git a/docs/kernsconfig b/docs/kernsconfig new file mode 100755 index 00000000..9a12bbec --- /dev/null +++ b/docs/kernsconfig @@ -0,0 +1,3 @@ +#!/bin/sh +./configure --with-bacula=${HOME}/bee/bacula/bacula +manuals/update_version diff --git a/docs/upload b/docs/upload new file mode 100755 index 00000000..fa666dc7 --- /dev/null +++ b/docs/upload @@ -0,0 +1,41 @@ +#!/bin/sh +if [ $# != 1 ] ; then + echo "First argument must be language, e.g.: send en|es|de|fr" + echo " " + exit 1 +fi +cwd=`pwd` +lang=$1 +src=$cwd/manuals/${lang} +ver=6.2.0 +repo=release + +echo "ver=${ver}" + +# sendit src dest +sendit() +{ + for i in console developers main misc problems utility; do + echo " " + echo "Sending: $1/$i" + echo "To: $2/$i" + rsync -avz --delete --progress $1/$i/ $2/$i/ + rsync -avz --delete --progress $1/$i/$i.pdf $2/$i/ + done +} + +dest=bacula:/var/www/bacula/6.2.x-manuals/${lang} +echo "Sending to $dest" +sendit $src $dest + +dest=bsweb:/var/www/docs/6.2.x-manuals/${lang} +echo "Sending to $dest" +sendit $src $dest + +destdir=/home/frs/repo/htmldocs/${lang}/${ver} +dest=bsweb:${destdir} +ssh bsweb <