#!/bin/sh if [ $# -eq 0 ]; then echo "usage: `basename $0` CHMOD-PERM [CVSROOT-DIRS...]" exit 5; fi perm=$1; shift if [ $# -eq 0 ]; then dirs=. else dirs=$* fi for d in $dirs; do find $CVSROOT/$d -type d -print | xargs chmod $perm done