]> git.sur5r.net Git - bacula/docs/commitdiff
Add kernsconf and upload
authorKern Sibbald <kern@sibbald.com>
Mon, 7 Jan 2013 09:57:22 +0000 (10:57 +0100)
committerKern Sibbald <kern@sibbald.com>
Mon, 7 Jan 2013 09:57:22 +0000 (10:57 +0100)
docs/kernsconfig [new file with mode: 0755]
docs/upload [new file with mode: 0755]

diff --git a/docs/kernsconfig b/docs/kernsconfig
new file mode 100755 (executable)
index 0000000..9a12bbe
--- /dev/null
@@ -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 (executable)
index 0000000..fa666dc
--- /dev/null
@@ -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 <<EOF
+mkdir -p ${destdir}
+EOF
+echo "Sending to $dest"
+sendit $src $dest