tar xfz $base_pkg-$ver.tar.gz
# First remove Enterprise Win32 plugin source
cd $base_pkg-$ver/bacula
-cp -fp ReleaseNotes ${cwd}/ReleaseNotes
+cp -fp ReleaseNotes ChangeLog src/version.h ${cwd}/
+cp -fp LICENSE* ${cwd}/
cd ${cwd}/$base_pkg-$ver
# Move directories to release names including version
. ./config
ver="7.2.0"
-fullver="bacula-7.2.0"
RSYNC="rsync -av --no-g --progress $upload_opt"
do_upload()
{
where=$1
-echo "Creating ${where}:/var/www/bacula/downloads/$fullver"
+echo "Creating ${where}:/home/src/$fullver"
ssh ${where} <<EOF
-cd /var/www/bacula/downloads/
-mkdir -p $fullver
+cd /home/src/
+mkdir -p $ver
EOF
echo "Uploading source"
-for i in bacula-*-$ver*; do \
- echo "Uplod $i to ${where}:/var/www/bacula/downloads/$fullver"
- $RSYNC $i ${where}:/var/www/bacula/downloads/$fullver/; \
+for i in bacula-$ver* bacula-*-$ver*; do \
+ echo "Uplod $i to ${where}:/home/src/$ver"
+ $RSYNC $i ${where}:/home/src/$ver/; \
done
# Upload release notes
-echo "Uplod ReleaseNote to ${where}:/var/www/bacula/downloads/$fullver"
-$RSYNC ReleaseNotes ${where}:/var/www/bacula/downloads/$fullver/
-echo "Uplod ChangeLog to ${where}:/var/www/bacula/downloads/$fullver"
-$RSYNC ChangeLog ${where}:/var/www/bacula/downloads/$fullver/
+echo "Uplod ReleaseNotes to ${where}:/home/src/$ver"
+$RSYNC ReleaseNotes ${where}:/home/src/$ver/
+echo "Uplod ChangeLog to ${where}:/home/src/$ver"
+$RSYNC ChangeLog ${where}:/home/src/$ver/
+$RSYNC LICENSE* ${where}:/home/src/$ver/
}