Skip to content
Snippets Groups Projects
Commit d38cdb4a authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Handle grep finds no matches." into main am: dee600b9 am: 1a4a3a4d am: c5a3a307

parents 60bef2a8 c5a3a307
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
......@@ -125,6 +124,6 @@ java_genrule {
srcs: [
"java-res/vendor.mime.types",
],
// strip comments normalize whitepace drop empty lines prepend ? to fields that are missing it
cmd: "awk '{gsub(/#.*$$/,\"\"); $$1=$$1; print;}' $(in) | grep ' ' | awk '{for(i=1;i<=NF;i++) { sub(/^\\??/, \"?\", $$i); }; print}' > $(out)",
// strip comments normalize whitepace drop empty lines prepend ? to fields that are missing it
cmd: "awk '{gsub(/#.*$$/,\"\"); $$1=$$1; print;}' $(in) | (grep ' ' || echo -n '') | awk '{for(i=1;i<=NF;i++) { sub(/^\\??/, \"?\", $$i); }; print}' > $(out)",
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment