Commit 96462ac7 authored by Dean Camera's avatar Dean Camera
Browse files

Oops - shell variables can't use the += operator - must reference the existing...

Oops - shell variables can't use the += operator - must reference the existing value in the new value to append.
parent 7d65c54e
......@@ -40,16 +40,16 @@ make-as4-projects:
source_files="<OTHERFILE>`basename $$project_makefile`<\/OTHERFILE>"; \
gcc_source_files=""; \
for c_source_file in `find $$target_folder -name *.c`; do \
source_files+="<SOURCEFILE>`basename $$c_source_file`<\/SOURCEFILE>"; \
gcc_source_files+="<Name>`basename $$c_source_file`<\/Name>"; \
source_files="$$source_files<SOURCEFILE>`basename $$c_source_file`<\/SOURCEFILE>"; \
gcc_source_files="$$gcc_source_files<Name>`basename $$c_source_file`<\/Name>"; \
done; \
for c_header_file in `find $$target_folder -name *.h`; do \
source_files+="<HEADERFILE>`basename $$c_header_file`<\/HEADERFILE>"; \
gcc_source_files+="<Name>`basename $$c_header_file`<\/Name>"; \
source_files="$$source_files<HEADERFILE>`basename $$c_header_file`<\/HEADERFILE>"; \
gcc_source_files="$$gcc_source_files<Name>`basename $$c_header_file`<\/Name>"; \
done; \
for assembly_file in `find $$target_folder -name *.S`; do \
source_files+="<OTHERFILE>`basename $$assembly_file`<\/OTHERFILE>"; \
gcc_source_files+="<Name>`basename $$assembly_file`<\/Name>"; \
source_files="$$source_files<OTHERFILE>`basename $$assembly_file`<\/OTHERFILE>"; \
gcc_source_files="$$gcc_source_files<Name>`basename $$assembly_file`<\/Name>"; \
done; \
\
sed "s/%TARGET%/$$target_name/g" AS4Template.aps > $$target_folder/$$target_name.aps.new; \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment