From cff8ad0f7ab4f7b6727c1168fd43f6edabcf4548 Mon Sep 17 00:00:00 2001 From: iaint Date: Thu, 29 Jan 1998 04:50:15 +0000 Subject: [PATCH] Fixed a problem with creating empty mf.inc files in $(GENDIR) git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@3948 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- scripts/genreplace.gawk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/genreplace.gawk b/scripts/genreplace.gawk index 77e69a9df8..8bc7ee1f20 100755 --- a/scripts/genreplace.gawk +++ b/scripts/genreplace.gawk @@ -1,9 +1,17 @@ +# Copyright (C) 1995-1998 AROS +# $Id$ +# +# Desc: Create mf.inc files from the %add_objects,%exclude_files stuff +# +BEGIN { + lastdir = ""; +} { match($2,/(.*\/)+/); funct = substr($2,RLENGTH + 1); path = substr($2,1,RLENGTH); - if(path != lastdir) + if((path != lastdir) && (lastdir != "")) { file = GENDIR "/" lastdir "mf.inc"; printf "SUPPRESS_FILES = %s\n", suppress > file;