diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-18 10:59:21 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-18 10:59:21 -0400 |
commit | 4952dfbbe745ade68020b25648f09106ffd26dcc (patch) | |
tree | 3baeec5317c91ab75476490fecf80559b56b85e3 /repo/upload | |
parent | cd2fda495f3b652c439543f32c1fe793aaf5609e (diff) | |
download | gpsd-4952dfbbe745ade68020b25648f09106ffd26dcc.tar.gz |
The repo config upload script is working.
Diffstat (limited to 'repo/upload')
-rwxr-xr-x | repo/upload | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/repo/upload b/repo/upload index 93f6372e..f6d68aae 100755 --- a/repo/upload +++ b/repo/upload @@ -10,18 +10,17 @@ confdir=git.berlios.de:/gitroot/gpsd/ copy() { scp $1 $LOGNAME@shell.berlios.de:STAGE - ssh $LOGNAME@shell.berlios.de "mv -f STAGE /gitroot/gpsd; cp /gitroot/gpsd/STAGE /gitroot/gpsd/$1" + ssh $LOGNAME@git.berlios.de "cp -f STAGE /gitroot/gpsd && mv /gitroot/gpsd/STAGE /gitroot/gpsd/$1" } - if [ $1 ] then - for f in $*; do scp $f $confdir/$f; done + for f in $*; do copy $f ; done else - scp config $confdir + copy config for file in hooks/* do - copy $file $confdir/hooks + copy $file done fi |