blob: 9b7716414d96211e5bd139ce44fb555bbfaff979 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#!/bin/sh
#
# Copy GraphicsMagick snapshot release files into a directory to make them available.
# Then use rsync to send them to SourceForge.
#
#
SNAPSHOT_DIRECTORY=/ftp/pub/GraphicsMagick/snapshots
RM='rm -f'
CP='cp'
#printf "ARGS: %s\n" "$@"
# Remove all existing snapshot archive files
printf "${RM} ${SNAPSHOT_DIRECTORY}/GraphicsMagick-*\n"
${RM} ${SNAPSHOT_DIRECTORY}/GraphicsMagick-*
for file in "$@" ; do
source=${file}
file_base=$(basename "${file}")
destf=''
case "${file_base}" in
ChangeLog)
destf="ChangeLog.txt"
;;
Changelog.html)
destf="ChangeLog.html"
;;
*.rpm*)
continue
;;
*.tar.bz2*)
continue
;;
*.tar.gz*)
continue
;;
*.tar.lz*)
continue
;;
*.tar.zst*)
continue
;;
*-windows.7z*)
continue
;;
*)
destf=${file_base}
;;
esac
dest="${SNAPSHOT_DIRECTORY}/${destf}"
printf "${RM} ${dest}\n"
${RM} "${dest}"
printf "${CP} ${source} ${dest}\n"
${CP} "${source}" "${dest}"
done
# Now use rsync to send to SourceForge frs.sourceforge.net:/home/pfs/project/g/gr/graphicsmagick/graphicsmagick-snapshots
printf "rsync ${SNAPSHOT_DIRECTORY}/ ...\n"
# -a == -rlptgoD
# -vrtc
# --bwlimit is in bytes rather than bits! Requests are rounded up to units of 1024 bytes.
time rsync -vrtzc --delete --delete-after --bwlimit=34k --stats ${SNAPSHOT_DIRECTORY}/ bfriesen,graphicsmagick@frs.sourceforge.net:/home/pfs/project/g/gr/graphicsmagick/graphicsmagick-snapshots
# Update web pages at SourceForge
if [ -d "${SRCDIR}/www" ] ; then
rsync --delete-after -rlptv --exclude={'*.rst','*.am','*.fig','*.dot','*~','*.tmp'} "${SRCDIR}/www/" bfriesen@web.sourceforge.net:/home/project-web/graphicsmagick/htdocs
else
printf "SRCDIR not defined!\n"
fi
|