Annotation of OpenXM/src/util/lndir.sh, Revision 1.1
1.1 ! ohara 1: #!/bin/sh
! 2: # $OpenXM$
! 3:
! 4: if [ $# -ne 1 -o ! -d $1 ]; then
! 5: echo 'usage: lndir.sh fromdir'
! 6: exit
! 7: fi
! 8: base=`(cd $1 ; pwd)`
! 9:
! 10: for i in `(cd $base; find . -type d -print | egrep -v '(^.$|/CVS/|/CVS$)' | sed -e s/^..//)`; do
! 11: mkdir -p "$i"
! 12: done
! 13: for i in `(cd $base; find . ! -type d -print | egrep -v '/CVS/' | sed -e s/^..//)` ; do
! 14: ln -s "$base/$i" $i
! 15: done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>