4 scriptdir
="`dirname $0`"
14 filter
="`gawk 'BEGIN { \
16 gsub (/\\./, "\\\\.
", str); \
17 gsub(/\\*/,".
*",str); \
21 echo -n "Creating links from $from/ to $to/ "
27 for direntry
in $from/* ; do
28 entry
="`basename $direntry`"
29 if [ -d $direntry ]; then
30 if [ "$entry" != "CVS" ]; then
31 if [ ! -d "$to/$entry" ]; then
34 $0 "$direntry" "$to/$entry" "$tfilter"
37 if echo "$entry" |
egrep -q -e "$filter"; then
38 rp
="`$scriptdir/relpath $to $from`"
39 #echo "Link $from/$entry to $to/$entry"
40 #echo "Link $rp/$entry to $entry"
41 ( cd $to ; rm -f $entry ; ln -s $rp/$entry $entry )