#!/bin/sh #------------------------------------------------------------------------------ # $Id: dcvs,v 1.1.1.1 2000/10/08 19:16:58 peters Exp $ # # This script is for solving the problem of CVS not creating empty # directories when you really do want them to exist, when you do a # 'cvs export' or 'cvs checkout' (with -r or -D flag). # # You use it in the same way as the standard cvs command, but use this # script instead. # # For example: # # dcvs export -D now somedir # # This script is available at http://www.ginini.com/software/dcvs/ # #------------------------------------------------------------------------------ trap 'echo $0 terminated; rm -f $TEMP' 1 2 3 15 TEMP=/tmp/dcvs$$ if [ $# -eq 0 ] then echo "Usage: `basename $0` " >&2 exit 1 fi cvs $* 2>$TEMP || exit $? for dir in `awk '{print $NF}' $TEMP` do [ -d $dir ] || mkdir -p $dir done rm -f $TEMP