#! /bin/sh
#
OLDPWD=`pwd`
cd `dirname $0`
case "$0" in
 /*)
  echo "#from `dirname $0` (on `hostname`)" >spbfiles
  ;;
 *)
  echo "#from `pwd`/`dirname $0` (on `hostname`)" >spbfiles
  ;;
esac
for x in *; do
 if [ -f "$x" ]; then
  echo $x >>spbfiles
 elif [ -d "$x" ]; then
  for xx in $x/*; do
   [ -f "$xx" ] && echo $xx >>spbfiles
  done
 fi
done
cd "$OLDPWD"
