]> git.sur5r.net Git - bacula/bacula/blob - bacula/release/upload
Tweak release directory
[bacula/bacula] / bacula / release / upload
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6 # Upload to File Release System on serfullver
7 #
8 . ./config
9
10 ver="7.2.0"
11 fullver="bacula-7.2.0"
12 RSYNC="rsync -av --no-g --progress $upload_opt"
13
14 do_upload()
15 {
16 where=$1
17 echo "Creating ${where}:/var/www/bacula/downloads/$fullver"
18 ssh ${where} <<EOF
19 cd /var/www/bacula/downloads/
20 mkdir -p $fullver
21 EOF
22
23 echo "Uploading source"
24 for i in bacula-*-$ver*; do \
25    echo "Uplod $i to ${where}:/var/www/bacula/downloads/$fullver"
26    $RSYNC $i ${where}:/var/www/bacula/downloads/$fullver/; \
27 done
28
29 # Upload release notes
30 echo "Uplod ReleaseNote to ${where}:/var/www/bacula/downloads/$fullver"
31 $RSYNC ReleaseNotes ${where}:/var/www/bacula/downloads/$fullver/
32 echo "Uplod ChangeLog to ${where}:/var/www/bacula/downloads/$fullver"
33 $RSYNC ChangeLog ${where}:/var/www/bacula/downloads/$fullver/
34
35
36 }
37
38 do_upload bacula