diff options
author | Xin Li <delphij@google.com> | 2016-03-15 13:22:49 -0700 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2016-03-15 13:22:49 -0700 |
commit | 2be84a5568abcae9c0cb1195512a959c3eb7d2e7 (patch) | |
tree | 017217155aefbfe1ca4f8cfa1fe591d6b7b66f47 | |
parent | 762617a12642c9de3e3ce66b26f6c8b122c06e0f (diff) | |
download | device_common-2be84a5568abcae9c0cb1195512a959c3eb7d2e7.tar.gz device_common-2be84a5568abcae9c0cb1195512a959c3eb7d2e7.tar.bz2 device_common-2be84a5568abcae9c0cb1195512a959c3eb7d2e7.zip |
- Use system date for copyright year.
- Use comm(1) instead of parsing diff output.
Change-Id: I6fb9085b7443ee17e252704be3771970befe136a
-rwxr-xr-x | generate-blob-lists.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/generate-blob-lists.sh b/generate-blob-lists.sh index fa6c20a..9525120 100755 --- a/generate-blob-lists.sh +++ b/generate-blob-lists.sh @@ -86,7 +86,7 @@ do if test $(wc -l < $ARCHIVEDIR/$DEVICENAME-without.txt) != 0 -a $(wc -l < $ARCHIVEDIR/$DEVICENAME-with.txt) != 0 then ( - echo '# Copyright (C) 2011 The Android Open Source Project' + date +"# Copyright (C) %Y The Android Open Source Project" echo '#' echo '# Licensed under the Apache License, Version 2.0 (the "License");' echo '# you may not use this file except in compliance with the License.' @@ -102,10 +102,8 @@ do echo echo '# This file is generated by device/common/generate-blob-lists.sh - DO NOT EDIT' echo - diff $ARCHIVEDIR/$DEVICENAME-without.txt $ARCHIVEDIR/$DEVICENAME-with.txt | - grep -v '\.odex$' | - grep '>' | - cut -b 3- + comm -13 $ARCHIVEDIR/$DEVICENAME-without.txt $ARCHIVEDIR/$DEVICENAME-with.txt | + grep -v '\.odex$' ) > $ARCHIVEDIR/$DEVICENAME-proprietary-blobs.txt cp $ARCHIVEDIR/$DEVICENAME-proprietary-blobs.txt device/$MANUFACTURERNAME/$DEVICENAME/proprietary-blobs.txt |