#!/bin/bash
# Recursively descend through a directory structure
# In each .blmenu file, replace '$BL_Browser' with
# 'chooseviewer.py ' 
#
# Typically, this script is run in the PCD directory.


for file in `ls`
do
  if [ ! -h $file ] # ignore symbolic links
  then
     if [ -d $file ]
        then
           cd $file
           echo "--- $file ---"
           $dat/Browser2Chooseviewer.sh
           cd ..
        else
           grep '$BL_Browser'  < $file
           cd ..
     fi
  fi
done

