#!/bin/sh # dounifdef file # find dir -type f \( -name '*akefile*' -o -name '*.c' \) -exec `pwd`/dounifdef {} \; unifdef -DNOENCRYPTION $1 > $1.unifdef if cmp $1 $1.unifdef > /dev/null ; then rm $1.unifdef else echo altered $1 rm $1 mv $1.unifdef $1 fi