GraphicsMagick: Add graphicsmagick_snapshot_copy-ssh and graphic...
GraphicsMagick Commits <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.cvs |
|---|---|
| Message-ID | <mailman.36768.1639339828.1346.graphicsmagick-commit@lists.sourceforge.net> |
changeset 9fdfaf652609 in /hg/GraphicsMagick details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=9fdfaf652609 summary: Add graphicsmagick_snapshot_copy-ssh and graphicsmagick_snapshot_copy-local sample graphicsmagick_snapshot_copy scripts. diffstat: ChangeLog | 11 ++++ scripts/graphicsmagick_snapshot_copy-local | 67 +++++++++++++++++++++++++++++ scripts/graphicsmagick_snapshot_copy-ssh | 68 ++++++++++++++++++++++++++++++ www/Changelog.html | 9 +++ 4 files changed, 155 insertions(+), 0 deletions(-) diffs (182 lines): diff -r 0cc7cbab8a9a -r 9fdfaf652609 ChangeLog --- a/ChangeLog Sun Dec 12 10:14:37 2021 -0600 +++ b/ChangeLog Sun Dec 12 14:10:18 2021 -0600 @@ -1,5 +1,16 @@ 2021-12-12 Bob Friesenhahn <[email protected]> + * scripts/graphicsmagick_snapshot_copy-ssh: Sample + graphicsmagick_snapshot_copy script which uses scp to copy + snapshot files to a directory at a remote host, and then rsync + over ssh from there to SourceForge. Copy to a local script + directory and edit to suit local requirements. + + * scripts/graphicsmagick_snapshot_copy-local: Sample + graphicsmagick_snapshot_copy script to copy snapshot files to a + local directory and then rsync over ssh to SourceForge. Copy to a + local script directory and edit to suit local requirements. + * Makefile.am (snapshot): Rely on the graphicsmagick_snapshot_copy script to reduce files we don't care to distribute so that all targets are still produced. diff -r 0cc7cbab8a9a -r 9fdfaf652609 scripts/graphicsmagick_snapshot_copy-local --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/graphicsmagick_snapshot_copy-local Sun Dec 12 14:10:18 2021 -0600 @@ -0,0 +1,67 @@ +#!/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,[email protected]:/home/pfs/project/g/gr/graphicsmagick/graphicsmagick-snapshots diff -r 0cc7cbab8a9a -r 9fdfaf652609 scripts/graphicsmagick_snapshot_copy-ssh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/graphicsmagick_snapshot_copy-ssh Sun Dec 12 14:10:18 2021 -0600 @@ -0,0 +1,68 @@ +#!/bin/sh +# +# Copy GraphicsMagick snapshot release files to a different host to make them available. +# Then use rsync to send them to SourceForge. +# Uses ssh for commands and copy. +# +# +SNAPSHOT_HOST='scrappy.simplesystems.org' +SNAPSHOT_DIRECTORY='/ftp/pub/GraphicsMagick/snapshots' +RM='rm -f' +SSH='ssh' +SCP='scp' + +#printf "ARGS: %s\n" "$@" + +# Remove all existing snapshot archive files +printf "${SSH} ${SNAPSHOT_HOST} ${RM} ${SNAPSHOT_DIRECTORY}"/'GraphicsMagick-*'"\n" +${SSH} ${SNAPSHOT_HOST} ${RM} "${SNAPSHOT_DIRECTORY}"/'GraphicsMagick-*' + +for file in "$@" ; do + + source=${file} + file_base=$(basename "${file}") + + 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 "${SSH} ${SNAPSHOT_HOST} ${RM} ${dest}\n" + ${SSH} ${SNAPSHOT_HOST} ${RM} ${dest} + printf "${SCP} ${source} ${SNAPSHOT_HOST}:${dest}\n" + ${SCP} "${source}" "${SNAPSHOT_HOST}:${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. +${SSH} ${SNAPSHOT_HOST} time rsync -vrtzc --delete --delete-after --bwlimit=34k --stats ${SNAPSHOT_DIRECTORY}/ bfriesen,[email protected]:/home/pfs/project/g/gr/graphicsmagick/graphicsmagick-snapshots diff -r 0cc7cbab8a9a -r 9fdfaf652609 www/Changelog.html --- a/www/Changelog.html Sun Dec 12 10:14:37 2021 -0600 +++ b/www/Changelog.html Sun Dec 12 14:10:18 2021 -0600 @@ -37,6 +37,15 @@ <p>2021-12-12 Bob Friesenhahn <<a class="reference external" href="mailto:bfriesen%40simple.dallas.tx.us">bfriesen<span>@</span>simple<span>.</span>dallas<span>.</span>tx<span>.</span>us</a>></p> <blockquote> +<p>* scripts/graphicsmagick_snapshot_copy-ssh: Sample +graphicsmagick_snapshot_copy script which uses scp to copy +snapshot files to a directory at a remote host, and then rsync +over ssh from there to SourceForge. Copy to a local script +directory and edit to suit local requirements.</p> +<p>* scripts/graphicsmagick_snapshot_copy-local: Sample +graphicsmagick_snapshot_copy script to copy snapshot files to a +local directory and then rsync over ssh to SourceForge. Copy to a +local script directory and edit to suit local requirements.</p> <p>* Makefile.am (snapshot): Rely on the graphicsmagick_snapshot_copy script to reduce files we don't care to distribute so that all targets are still produced.</p>