forked from extern/shorewall_code
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:
parent
3b6aff596f
commit
a21550d18f
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user