diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-18 09:23:11 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-18 09:23:11 -0400 |
commit | 9a03aa5c5bd13524d416747bf4f1608e01af0610 (patch) | |
tree | c2de965c810ef58443ab5d649cd5bf1e9b3730e3 /repo | |
parent | 9dfd86e88b546c1e1317c7629973c1c955f556fe (diff) | |
download | gpsd-9a03aa5c5bd13524d416747bf4f1608e01af0610.tar.gz |
Create a script to upload pieces of git configuration from the repo directory.
...also, experiment on the config file to see if it does desirablethings
to the next config message.
Diffstat (limited to 'repo')
-rw-r--r-- | repo/config | 4 | ||||
-rwxr-xr-x | repo/upload | 29 |
2 files changed, 31 insertions, 2 deletions
diff --git a/repo/config b/repo/config index 9e491fef..93d3bd6d 100644 --- a/repo/config +++ b/repo/config @@ -8,9 +8,9 @@ owner = esr dbrashear remco nelsonrn garyemiller ckuethe wkazubski marr jfrancis mick_durkin bzed gdt mledford [hooks] mailinglist = gpsd-commit-watch@lists.berlios.de - announcelist = gpsd-dev@lists.berlios.de + announcelist = gpsd-announce@lists.berlios.de envelopesender = gpsd-dev@lists.berlios.de - emailprefix = [GIT] + emailprefix = "" allowunannotated = true allowdeletebranch = true denycreatebranch = false diff --git a/repo/upload b/repo/upload new file mode 100755 index 00000000..93f6372e --- /dev/null +++ b/repo/upload @@ -0,0 +1,29 @@ +#!/bin/bash +# +# Upload git configuration from here to the repo +# +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@shell.berlios.de "mv -f STAGE /gitroot/gpsd; cp /gitroot/gpsd/STAGE /gitroot/gpsd/$1" +} + + +if [ $1 ] +then + for f in $*; do scp $f $confdir/$f; done +else + scp config $confdir + for file in hooks/* + do + copy $file $confdir/hooks + done +fi + +# End + |