Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
Source at commit f6fd776f528905e346c7f1caec97945535c7ca43 created 12 years 4 months ago. By Werner Almesberger, m1/patches/rtems/: Milkymist-specific patches are in upstream (update by Xiangfu) | |
---|---|
1 | #!/bin/sh |
2 | |
3 | ACCT=www-data@downloads.qi-hardware.com |
4 | DIR=werner |
5 | |
6 | if [ -z "$1" ]; then |
7 | exec ssh $ACCT |
8 | fi |
9 | |
10 | if [ "${1#-}" != "$1" -o -z "$2" ]; then |
11 | echo "usage: $0" 2>&1 |
12 | echo " $0 file ... dir" 2>&1 |
13 | exit 1 |
14 | fi |
15 | |
16 | while [ "$2" ]; do |
17 | args="$args \"$1\"" |
18 | shift |
19 | done |
20 | if [ "${1#/}" = "$1" ]; then |
21 | dir=$DIR/$1 |
22 | else |
23 | dir=$1 |
24 | fi |
25 | eval scp $args $ACCT:$dir |
26 |
Branches:
master