#!/bin/sh

./dev-bin/regen-prototypes.pl

# We indent each thing twice because ident is not idempotent - in some cases
# it will flip-flop between two indentation styles.
for dir in bin include src t; do
    c_files=`find $dir -maxdepth 1 -name '*.c'`
    if [ "$c_files" != "" ]; then
        indent $dir/*.c;
        indent $dir/*.c;
    fi
    
    h_files=`find $dir -maxdepth 1 -name '*.h'`
    if [ "$h_files" != "" ]; then
        indent $dir/*.h;
        indent $dir/*.h;
    fi
done

Add a script to run indent on all files at once
Add a script to run indent on all files at once
