1#!/bin/sh - 2# 3# $Id: chk.osdir,v 1.1 2007/12/06 21:01:09 bostic Exp $ 4# 5# Check to make sure the @OSDIR@ entries in the Makefile are correct. 6 7d=../../dist 8 9[ -d $d ] || { 10 echo 'FAIL: cannot find source distribution directory.' 11 exit 1 12} 13 14t1=__1 15t2=__2 16 17egrep '/@OSDIR@/' $d/Makefile.in | sed -e 's/@.*/.c/' > t1 18 19(cd $d/../os_windows && ls os_*.c) > t2 20 21cmp t1 t2 || { 22 echo "Makefile @OSDIR@ mismatch with os_windows files" 23 echo "<<< Makefile >>> os_windows" 24 diff t1 t2 25 exit 1 26} 27exit 0 28