source $stdenv/setup # Wrap the given `aclocal' program, appending extra `-I' flags # corresponding to the directories listed in $ACLOCAL_PATH. (Note # that `wrapProgram' can't be used for that purpose since it can only # prepend flags, not append them.) wrapAclocal() { local program="$1" local wrapped="$(dirname $program)/.$(basename $program)-wrapped" mv "$program" "$wrapped" cat > "$program"<