This makes publish work in a group-writable environment (now that we

have multiple people maintaining things).  I hope you weren't depending
on the output from this script!  If you were, feel free to revert it or
hack it further.


git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2367 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
paulgear 2005-07-18 10:07:49 +00:00
parent 3b6aff596f
commit a21550d18f

View File

@ -95,15 +95,21 @@ while [ $# -gt 0 ]; do
done done
DESTS="
shorewall.sourceforge.net:/home/groups/s/sh/shorewall/htdocs
mail.shorewall.net:/var/www/html
"
if [ -n "$filestocopy" ]; then if [ -n "$filestocopy" ]; then
for f in $filestocopy; do for f in $filestocopy; do
filestoreport="$filestoreport $(basename $f)" filestoreport="$filestoreport $(basename $f)"
done done
echo "Copying$filestoreport to SourceForge..." chmod g+w $filestocopy
scp $filestocopy shorewall.sourceforge.net:/home/groups/s/sh/shorewall/htdocs > /dev/null for d in $DESTS; do
echo "Copying$filestoreport to Mail..." echo "$filestoreport -> $d"
scp $filestocopy mail.shorewall.net:/var/www/html > /dev/null scp -qp $filestocopy $d
done
fi fi