Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d632171e authored by Wei Li's avatar Wei Li Committed by Gerrit Code Review
Browse files

Merge "Use ninja rspfile for list of provenance metadata file of modules, in...

Merge "Use ninja rspfile for list of provenance metadata file of modules, in case there are many provenance metadata files and the list might exceed the command line length limit." into main
parents 01f70e8d 04e4dfa2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -38,7 +38,9 @@ var (
			Command: `rm -rf $out && ` +
				`echo "# proto-file: build/soong/provenance/proto/provenance_metadata.proto" > $out && ` +
				`echo "# proto-message: ProvenanceMetaDataList" >> $out && ` +
				`for file in $in; do echo '' >> $out; echo 'metadata {' | cat - $$file | grep -Ev "^#.*|^$$" >> $out; echo '}' >> $out; done`,
				`cat $out.rsp | tr ' ' '\n' | while read -r file || [ -n "$$file" ]; do echo '' >> $out; echo 'metadata {' | cat - $$file | grep -Ev "^#.*|^$$" >> $out; echo '}' >> $out; done`,
			Rspfile:        `$out.rsp`,
			RspfileContent: `$in`,
		})
)