From: <jt...@us...> - 2015-03-12 19:53:35
|
Revision: 1757 http://sourceforge.net/p/freeglut/code/1757 Author: jtsiomb Date: 2015-03-12 19:53:32 +0000 (Thu, 12 Mar 2015) Log Message: ----------- added handy upload script which uses rsync to copy all modified files Added Paths: ----------- trunk/freeglut/web-src/upload Added: trunk/freeglut/web-src/upload =================================================================== --- trunk/freeglut/web-src/upload (rev 0) +++ trunk/freeglut/web-src/upload 2015-03-12 19:53:32 UTC (rev 1757) @@ -0,0 +1,21 @@ +#!/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,fre...@we...:htdocs/ Property changes on: trunk/freeglut/web-src/upload ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |