#! /bin/bash -e

# (See the notes in `./buff-expand'.)
#
# This script is successfully called from the main source directory as
# `helper/buffe-src'.  It buffs and expands all the source files, except
# that it only buff the two Makefiles `Makefile' and `debian/rules'.

BUFFE=helper/buff-expand
for F in `find . ! -name '*.tar'` ; do
  if [ -f $F ] ; then
    if ! [ $F -ef Makefile -o $F -ef debian/rules ] ; then
      $BUFFE     $F
      echo       $F
    else
      $BUFFE -X  $F
      echo  '-X' $F
    fi
  fi
done

