]> git.sur5r.net Git - bacula/bacula/blob - bacula/release/upload
Tweak update version date
[bacula/bacula] / bacula / release / upload
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2017 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.9.0"
11 RSYNC="rsync -av --no-g --progress $upload_opt"
12
13 do_upload()
14 {
15 where=$1
16 echo "Creating ${where}:/home/src/$fullver"
17 ssh ${where} <<EOF
18 cd /home/src/
19 mkdir -p $ver
20 EOF
21
22 echo "Uploading source"
23 for i in bacula-$ver* bacula-*-$ver*; do \
24    echo "Uplod $i to ${where}:/home/src/$ver"
25    $RSYNC $i ${where}:/home/src/$ver/; \
26 done
27
28 # Upload release notes
29 echo "Uplod ReleaseNotes to ${where}:/home/src/$ver"
30 $RSYNC ReleaseNotes ${where}:/home/src/$ver/
31 echo "Uplod ChangeLog to ${where}:/home/src/$ver"
32 $RSYNC ChangeLog ${where}:/home/src/$ver/
33 $RSYNC LICENSE* ${where}:/home/src/$ver/
34
35
36 }
37
38 do_upload bacula