11#! /bin/bash
22
3- version=0.11
3+ version=0.12
44program=${0##*/ }
55progdir=${0%/* }
66if [ " $progdir " = " $program " ]; then progdir=" ." ; fi
@@ -23,7 +23,7 @@ DESCRIPTION
2323 from the ietf server to a local directory, for instance drafts,
2424 charters, rfcs, agendas, minutes, etc.
2525
26- If no destination is given, the default is data/developers .
26+ If no destination is given, the default is /assets .
2727
2828OPTIONS
2929EOF
3232
3333AUTHOR
3434 Written by:
35- Henrik Levkowetz, <henrik@levkowetz.com>
35+ Henrik Levkowetz, <henrik@levkowetz.com>
3636 Lars Eggert, <lars@eggert.org>
3737
3838COPYRIGHT
3939 Copyright (c) 2016 IETF Trust and the persons identified as authors of
4040 the code. All rights reserved. Redistribution and use in source and
4141 binary forms, with or without modification, is permitted pursuant to,
4242 and subject to the license terms contained in, the Revised BSD
43- License set forth in Section 4.c of the IETF Trust’ s Legal Provisions
43+ License set forth in Section 4.c of the IETF Trust' s Legal Provisions
4444 Relating to IETF Documents(https://trustee.ietf.org/license-info).
4545
4646EOF
@@ -61,52 +61,51 @@ trap 'echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)";
6161
6262
6363# Option parsing
64- shortopts=hvV
64+ shortopts=hv
6565args=$( getopt -o$shortopts $* )
6666if [ $? != 0 ] ; then die " Terminating..." >&2 ; exit 1 ; fi
6767set -- $args
6868
6969while true ; do
7070 case " $1 " in
71- -h) usage; exit ;; # Show this help, then exit
72- -v) VERBOSE=1;; # Be more talkative
73- -V) version; exit ;; # Show program version, then exit
74- --) shift ; break ;;
75- * ) die " Internal error, inconsistent option specification: '$1 '" ;;
71+ -h) usage; exit ;; # Show this help, then exit
72+ -v) version; exit ;; # Show program version, then exit
73+ --) shift ; break ;;
74+ * ) die " Internal error, inconsistent option specification: '$1 '" ;;
7675 esac
7776 shift
7877done
7978
8079# The program itself
8180if [ $# -lt 1 ]; then
82- DEST_ROOT=data/developers
81+ DEST_ROOT=/assets
8382else
8483 DEST_ROOT=" ${1%/ } "
8584fi
8685echo " Using destination $DEST_ROOT "
8786
8887for dir in bofreq; do
89- dest=" $DEST_ROOT /ietf-ftp/$dir "
90- mkdir -p " $dest "
91- echo " Fetching $dest ..."
92- rsync -auz ${VERBOSE : + --info=progress2} rsync.ietf.org::$dir / $dest /
88+ dest=" $DEST_ROOT /ietf-ftp/$dir "
89+ mkdir -p " $dest "
90+ echo " Fetching $dest ..."
91+ rsync -auz --info=progress2 rsync.ietf.org::$dir / $dest /
9392done
9493
9594for dir in charter conflict-reviews internet-drafts review rfc slides status-changes yang; do
96- dest=" $DEST_ROOT /ietf-ftp/$dir "
97- mkdir -p " $dest "
98- echo " Fetching $dest ..."
99- rsync -auz ${VERBOSE : + --info=progress2} rsync.ietf.org::everything-ftp/$dir / $dest /
95+ dest=" $DEST_ROOT /ietf-ftp/$dir "
96+ mkdir -p " $dest "
97+ echo " Fetching $dest ..."
98+ rsync -auz --info=progress2 rsync.ietf.org::everything-ftp/$dir / $dest /
10099done
101100
102101for dir in floor photo; do
103- dest=" $DEST_ROOT /media/$dir "
104- mkdir -p " $dest "
105- echo " Fetching $dest ..."
106- rsync -auz ${VERBOSE : + --info=progress2} rsync.ietf.org::dev.media/$dir / $dest /
102+ dest=" $DEST_ROOT /media/$dir "
103+ mkdir -p " $dest "
104+ echo " Fetching $dest ..."
105+ rsync -auz --info=progress2 rsync.ietf.org::dev.media/$dir / $dest /
107106done
108107
109108dest=" $DEST_ROOT /archive/id"
110109mkdir -p " $dest "
111110echo " Fetching $dest ..."
112- rsync -auz ${VERBOSE : + --info=progress2} rsync.ietf.org::id-archive/ $dest /
111+ rsync -auz --info=progress2 rsync.ietf.org::id-archive/ $dest /
0 commit comments