| 1 |
#!/bin/bash -e |
| 2 |
|
| 3 |
# This script expects the ~/src/rsync directory to contain the rsync |
| 4 |
# source that has been updated. It also expects the auto-build-save |
| 5 |
# directory to have been created prior to the running of configure so |
| 6 |
# that each branch has its own build directory underneath. This supports |
| 7 |
# the maintainer workflow for the rsync-patches files maintenace. |
| 8 |
|
| 9 |
FTP_SRC="$HOME/samba-rsync-ftp" |
| 10 |
FTP_DEST="/home/ftp/pub/rsync" |
| 11 |
MD_FILES="README.md INSTALL.md NEWS.md" |
| 12 |
|
| 13 |
case "$RSYNC_SAMBA_HOST" in |
| 14 |
*.samba.org) ;; |
| 15 |
*) |
| 16 |
echo "You must set RSYNC_SAMBA_HOST in your environment to the samba hostname to use." >&2 |
| 17 |
exit 1 |
| 18 |
;; |
| 19 |
esac |
| 20 |
|
| 21 |
if [ ! -d "$FTP_SRC" ]; then |
| 22 |
packaging/samba-rsync ftp # Ask to initialize the local ftp dir |
| 23 |
fi |
| 24 |
|
| 25 |
cd ~/src/rsync |
| 26 |
|
| 27 |
make man |
| 28 |
./md-convert --dest="$FTP_SRC" $MD_FILES |
| 29 |
rsync -aiic $MD_FILES auto-build-save/master/*.?.html "$FTP_SRC" |
| 30 |
|
| 31 |
cd "$FTP_SRC" |
| 32 |
|
| 33 |
rsync -aiic README.* INSTALL.* NEWS.* *.?.html "$RSYNC_SAMBA_HOST:$FTP_DEST/" |