#!/bin/sh
# SQUEEZE removes unnecessary files and compresses .tex and README files
# By Barry tolnas, tolnas@sun1.engr.utk.edu
# Modified to work under Bad Penguin by AGX
if [ "$1" = "" ]; then
  S_PWD=$PWD
else
  S_PWD=$1
fi
echo Squeezing $S_PWD
find  $S_PWD \( -name \*~ -or -name \*\# \) -exec rm -vf {} \;
#find  $S_PWD \( -name \*~ -or -name \*.o -or -name \*.log -or -name \*\# \) -exec rm -vf {} \;
#find $PWD \( -name \*.tex -or -name \*README\* -or -name \*readme\* \) -exec gzip -9 {} \;
