Skip to content

Commit bd93895

Browse files
committed
add selective shipping
1 parent 0736557 commit bd93895

File tree

1 file changed

+32
-12
lines changed

1 file changed

+32
-12
lines changed

ship-cm3-www

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,43 @@ if [ "$1" = "-v" ] ; then
4242
VERBOSE="-v"
4343
shift
4444
fi
45-
45+
fns=""
46+
while [ -n "$1" ]; do
47+
fns="$fns $1"
48+
shift
49+
done
4650

4751
for r in ${REMOTE}; do
4852
if [ "x${VERBOSE}" = x-v ] ; then
4953
echo "updating remote site ${r}..."
5054
fi
51-
RSYNC_RSH=ssh rsync ${NOPT} ${VERBOSE} -C ${RSYNCOPTS} -ruptl \
52-
--exclude=cm3 \
53-
--exclude=PkgTags \
54-
--exclude=tmp \
55-
--exclude=\*~ \
56-
--exclude=\*.flc \
57-
--exclude=www-install.sh \
58-
--exclude=ship-cm3-www \
59-
--exclude=ship-cm3-testing \
60-
--exclude=doc/help/reactor \
61-
* ${r}
55+
if [ -z "$fns" ]; then
56+
RSYNC_RSH=ssh rsync ${NOPT} ${VERBOSE} -C ${RSYNCOPTS} -ruptl \
57+
--exclude=cm3 \
58+
--exclude=PkgTags \
59+
--exclude=tmp \
60+
--exclude=\*~ \
61+
--exclude=\*.flc \
62+
--exclude=www-install.sh \
63+
--exclude=ship-cm3-www \
64+
--exclude=ship-cm3-testing \
65+
--exclude=uploaded-archives \
66+
* ${r}
67+
else
68+
for f in $fns; do
69+
RSYNC_RSH=ssh rsync ${NOPT} ${VERBOSE} -C ${RSYNCOPTS} -uptl \
70+
--exclude=cm3 \
71+
--exclude=PkgTags \
72+
--exclude=tmp \
73+
--exclude=\*~ \
74+
--exclude=\*.flc \
75+
--exclude=www-install.sh \
76+
--exclude=ship-cm3-www \
77+
--exclude=ship-cm3-testing \
78+
--exclude=uploaded-archives \
79+
${f}/* ${r}/${f}
80+
done
81+
fi
6282
done
6383

6484
# --exclude=doc/src_reports/*.ps* \

0 commit comments

Comments
 (0)