#!/bin/sh

# prog_dir_diffs
#
# Find different programming source files recursively in 2 specified directories.
# Assumes GLFPE source tree standards. One dir may be Linux based, other dir 
# Windows based, but that is not required.  This is useful to find projects which
# change from one version to another over time or across OS adaptations. It is 
# assumed this script is placed under /usr/local/bin for universal availability.

#
#    Ex:  prog_dir_diffs  /media/user/Windows/prg/win/orw630/ \
#                         /media/user/WORKDATA/sanctuary/v32_630/ > ~/diffs.txt

diff -r -q $1 $2 \
-x "*.exe" -x "*.o" -x "*.vmk" -x "*.vpj" -x "*.mkw" -x "*.dev" -x "lx*" -x "*.bat" \
-x "*.layout" -x ".objs" -x "*.win" -x "*.v" -x "*.sh" -x "*.a" -x "*.cbp" \
| grep "Files " | grep "\."


