--- /dev/null
+#!/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 <<EOF
+mkdir -p ${destdir}
+EOF
+echo "Sending to $dest"
+sendit $src $dest