1java_genrule { 2 name: "debian.mime.types.minimized", 3 visibility: [ 4 "//visibility:public", 5 ], 6 out: ["debian.mime.types"], 7 srcs: [ 8 "mime.types", 9 ], 10 // strip comments normalize whitepace drop empty lines 11 cmd: "awk '{gsub(/#.*$$/,\"\"); $$1=$$1; print;}' $(in) | grep ' ' > $(out)", 12} 13