#! /bin/sh # # Build Makefile.am # Process Make.base, insert subdirs that exist from Make.subdirs # (in release trees, some of the subdirs might be excluded). (sed -n '1,/BEGIN SUBDIRS/p' Make.base echo "SUBDIRS =" sed -e 's/#.*$//' -e '/^$/d' Make.subdirs | while read dir conds ; do test -d ../$dir || continue if test -n "$conds" ; then # Multiple conditions are allowed, they will appear # as nested 'if' statements. for cond in $conds; do cat < ../Makefile.am