summaryrefslogtreecommitdiffstats
path: root/debian/import
blob: ac03e24928eebecb798c6b2febf0cdee75585ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

# Import updates from main CVS repo

if ! git branch -l | grep -q upstream ; then
    git branch upstream origin/upstream
fi

# verbose args: -v -p-v
git-cvsimport -d :pserver:anoncvs@anoncvs.quagga.net:/var/cvsroot -k -u -i -m -o upstream quagga

# Annotate tags

git tag -l |
while read t ; do
    if [ ! -r .git/refs/tags/$t ] ; then
       r=$(git-show-ref -s $t)
       git tag -d $t
       git tag -a -m 'import cvs tag' $t $r
    fi
done

echo "Remember to: git push suva:/git/quagga.git upstream"