b28fd0d96e
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1851 7f0cb862-5218-0410-a997-914c9d46530a
22 lines
443 B
Bash
Executable File
22 lines
443 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -n "$1" ]; then
|
|
user=$1
|
|
else
|
|
# read the username out of .sfuser
|
|
if [ -f .sfuser ]; then
|
|
user=$(cat .sfuser)
|
|
else
|
|
user=$USER
|
|
fi
|
|
|
|
if [ -z "$user" ]; then
|
|
echo "please pass your sourceforge username as argument, or create a .sfuser file" >&2
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
echo "connecting as user: $user ..."
|
|
rsync -avP -e ssh --exclude='.sfuser' --exclude '*.swp' \
|
|
* $user@web.sourceforge.net:/home/project-web/freeglut/htdocs/
|