This repository has been archived on 2024-06-25. You can view files and clone it, but cannot push or open issues or pull requests.
FreeGLUT-Vita/freeglut/web-src/upload
2015-03-12 19:53:32 +00:00

22 lines
438 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 -vr --exclude='.sfuser' --exclude '*.swp' \
--rsh="ssh -l $user" * $user,freeglut@web.sourceforge.net:htdocs/