diff options
| author | 2023-09-27 00:23:18 +0000 | |
|---|---|---|
| committer | 2023-09-27 00:23:18 +0000 | |
| commit | d38cdb4ae46c696528a6eade932f44a3777e2f35 (patch) | |
| tree | e5fdaed35c55078946c8d65aaad9a97885083f55 | |
| parent | 60bef2a8e0101fbd67d8c971672ed76b4b9f2e37 (diff) | |
| parent | c5a3a307cc617910d51f4856c2296b9077930af6 (diff) | |
Merge "Handle grep finds no matches." into main am: dee600b9bd am: 1a4a3a4dcf am: c5a3a307cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2745856
Change-Id: I008128a944beb7b972062198dab4dde60a01256c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | mime/Android.bp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mime/Android.bp b/mime/Android.bp index a3ea65cb2efe..757862b998b4 100644 --- a/mime/Android.bp +++ b/mime/Android.bp @@ -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)", } |