From 96462ac746218d8a2eff596544ad4bef481402ea Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 27 May 2012 17:11:43 +0000 Subject: [PATCH] Oops - shell variables can't use the += operator - must reference the existing value in the new value to append. --- Maintenance/makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Maintenance/makefile b/Maintenance/makefile index 84e4a703f2..19ea32b674 100644 --- a/Maintenance/makefile +++ b/Maintenance/makefile @@ -40,16 +40,16 @@ make-as4-projects: source_files="`basename $$project_makefile`<\/OTHERFILE>"; \ gcc_source_files=""; \ for c_source_file in `find $$target_folder -name *.c`; do \ - source_files+="`basename $$c_source_file`<\/SOURCEFILE>"; \ - gcc_source_files+="`basename $$c_source_file`<\/Name>"; \ + source_files="$$source_files`basename $$c_source_file`<\/SOURCEFILE>"; \ + gcc_source_files="$$gcc_source_files`basename $$c_source_file`<\/Name>"; \ done; \ for c_header_file in `find $$target_folder -name *.h`; do \ - source_files+="`basename $$c_header_file`<\/HEADERFILE>"; \ - gcc_source_files+="`basename $$c_header_file`<\/Name>"; \ + source_files="$$source_files`basename $$c_header_file`<\/HEADERFILE>"; \ + gcc_source_files="$$gcc_source_files`basename $$c_header_file`<\/Name>"; \ done; \ for assembly_file in `find $$target_folder -name *.S`; do \ - source_files+="`basename $$assembly_file`<\/OTHERFILE>"; \ - gcc_source_files+="`basename $$assembly_file`<\/Name>"; \ + source_files="$$source_files`basename $$assembly_file`<\/OTHERFILE>"; \ + gcc_source_files="$$gcc_source_files`basename $$assembly_file`<\/Name>"; \ done; \ \ sed "s/%TARGET%/$$target_name/g" AS4Template.aps > $$target_folder/$$target_name.aps.new; \