summaryrefslogtreecommitdiff
path: root/repo/upload
blob: 2271c374c3b59b5f27ce44c8af0a41170eb4a74b (plain)
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
26
27
28
29
#!/bin/sh
#
# Upload git configuration from here to the repo
# Please do not introduce bashisms into this script.
#
confdir=git.berlios.de:/gitroot/gpsd/

# Get around the ssh lockout on git.berlios.de by copying up to 
# shell.berlios.de and doing a local move. Written so the last
# move is atomic.
copy()
{
    scp $1 $LOGNAME@shell.berlios.de:STAGE
    ssh $LOGNAME@git.berlios.de "cp -f STAGE /gitroot/gpsd && mv /gitroot/gpsd/STAGE /gitroot/gpsd/$1"
}

if [ $1 ]
then
    for f in $*; do copy $f ; done
else
    copy config
    for file in hooks/*
    do
        copy $file
    done
fi

# End