File: publish_docs.sh

package info (click to toggle)
gamera 1:3.4.2+git20160808.1725654-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,312 kB
  • ctags: 24,991
  • sloc: xml: 122,324; ansic: 52,869; cpp: 50,664; python: 35,034; makefile: 118; sh: 101
file content (25 lines) | stat: -rwxr-xr-x 404 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

#
# script for uploading html docs to sourceforge
#

USER=''
USAGE="USAGE: `basename $0` <username>"

# read command line arguments
while [ $# -gt 0 ]
do
	case "$1" in
		-*) echo "$USAGE"; exit 0;;
		*)  USER="$1";;
	esac
	shift
done
if [ -z "$USER" ]
then
	echo "$USAGE" 1>&2
	exit 1
fi

rsync -e ssh -arvz --delete html $USER,gamera@web.sourceforge.net:/home/groups/g/ga/gamera/htdocs/doc