wafsamba: Specify full vscript path so non-autogenerated files are possible, too.
[Samba.git] / lib / update-external.sh
blob0a854406b527e8e5ccd7a942b4bfde7fdd5c5257
1 #!/bin/sh
2 # Pull in a new snapshot of external projects that are included in
3 # our source tree for users that don't have them installed on their system
5 TARGETDIR="`dirname $0`"
6 WORKDIR="`mktemp -d`"
8 echo "Updating subunit..."
9 bzr export "$WORKDIR/subunit" lp:subunit
10 # Preserve wscript file
11 cp "$TARGETDIR/subunit/c/wscript" "$WORKDIR/subunit/c/wscript"
12 rsync -avz --delete "$WORKDIR/subunit/" "$TARGETDIR/subunit/"
14 echo "Updating testtools..."
15 bzr export "$WORKDIR/testtools" lp:testtools
16 rsync -avz --delete "$WORKDIR/testtools/" "$TARGETDIR/testtools/"
18 echo "Updating dnspython..."
19 git clone git://www.dnspython.org/dnspython.git "$WORKDIR/dnspython"
20 rm -rf "$WORKDIR/dnspython/.git"
21 rsync -avz --delete "$WORKDIR/dnspython/" "$TARGETDIR/dnspython/"
23 rm -rf "$WORKDIR"