#!/bin/sh - # $Id$ # # Copyright (C) 2009-2011 Internet Systems Consortium ("ISC") # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # # Automate checkout for a sparse tree. Pulling just a development # branch is trivial and requires no special voodoo, but bind9 (and, to # a lesser extent, dhcp) generally has enough active branches that # it's easier to use a sparse tree if you want the whole ball of wax. # # NB: You don't need to use this script at all if you're willing to # stick with the one-branch-at-a-time model that is all CVS supports. # This script is only useful if you need to work with multiple # branches in parallel, eg, if you want the ability to commit to # multiple branches with a single commit operation. uri=${1-http://subvert-rpki.hactrn.net} dir=${2-${uri##*/}} svn checkout $uri/ --depth immediates cd $dir svn update trunk --set-depth infinity svn update branches --set-depth immediates svn update tags --set-depth immediates