#!/bin/csh
# $Id: combine,v 1.4 1996/07/09 04:46:51 paul Exp $

# Run from src/kernel, src/mm, src/fs, src/inet or src/tools to recreate the 
# image file after one of the four of five constituent programs has been
# recreated.  Notice that inet is only including if networking is enabled.

egrep -s '^\#define  *ENABLE_NETWORKING  *1' $MX_INCL/minix/config.h
if ($status == 0) then
    set progs = (../kernel/kernel ../mm/mm ../fs/fs ../inet/inet ../tools/init)
else
    set progs = (../kernel/kernel ../mm/mm ../fs/fs ../tools/init)
endif

foreach prog ($progs)
   if (! -f $prog) exit 
end

cat $progs >../tools/image
