Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/bin/bash -e | 1 #!/bin/bash -e |
| 2 # | 2 # |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # This script is used to generate .gypi, .gni files and files in the | 7 # This script is used to generate .gypi, .gni files and files in the |
| 8 # config/platform directories needed to build libvpx. | 8 # config/platform directories needed to build libvpx. |
| 9 # Every time libvpx source code is updated just run this script. | 9 # Every time libvpx source code is updated just run this script. |
| 10 # | 10 # |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 451 make_clean | 451 make_clean |
| 452 rm -rf vpx_config.* | 452 rm -rf vpx_config.* |
| 453 } | 453 } |
| 454 | 454 |
| 455 function update_readme { | 455 function update_readme { |
| 456 local IFS=$'\n' | 456 local IFS=$'\n' |
| 457 # Split git log output '<date>\n<commit hash>' on the newline to produce 2 | 457 # Split git log output '<date>\n<commit hash>' on the newline to produce 2 |
| 458 # array entries. | 458 # array entries. |
| 459 local vals=($(git --no-pager log -1 --format="%cd%n%H" \ | 459 local vals=($(git --no-pager log -1 --format="%cd%n%H" \ |
| 460 --date=format:"%A %B %d %Y")) | 460 --date=format:"%A %B %d %Y")) |
| 461 sed -E -i '' \ | 461 sed -E -i.bak \ |
|
jzern
2016/08/30 23:57:53
this was my mistake, when testing I think I had th
jzern
2016/08/31 18:19:09
I was wrong, abutting it on OSX will consume the n
| |
| 462 -e "s/^(Date:)[[:space:]]+.*$/\1 ${vals[0]}/" \ | 462 -e "s/^(Date:)[[:space:]]+.*$/\1 ${vals[0]}/" \ |
| 463 -e "s/^(Commit:)[[:space:]]+[a-f0-9]{40}/\1 ${vals[1]}/" \ | 463 -e "s/^(Commit:)[[:space:]]+[a-f0-9]{40}/\1 ${vals[1]}/" \ |
| 464 ${BASE_DIR}/README.chromium | 464 ${BASE_DIR}/README.chromium |
| 465 rm ${BASE_DIR}/README.chromium.bak | |
| 465 cat <<EOF | 466 cat <<EOF |
| 466 | 467 |
| 467 README.chromium updated with: | 468 README.chromium updated with: |
| 468 Date: ${vals[0]} | 469 Date: ${vals[0]} |
| 469 Commit: ${vals[1]} | 470 Commit: ${vals[1]} |
| 470 EOF | 471 EOF |
| 471 } | 472 } |
| 472 | 473 |
| 473 find_duplicates | 474 find_duplicates |
| 474 | 475 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 611 | 612 |
| 612 gn format --in-place $BASE_DIR/BUILD.gn | 613 gn format --in-place $BASE_DIR/BUILD.gn |
| 613 gn format --in-place $BASE_DIR/libvpx_srcs.gni | 614 gn format --in-place $BASE_DIR/libvpx_srcs.gni |
| 614 | 615 |
| 615 cd $BASE_DIR/$LIBVPX_SRC_DIR | 616 cd $BASE_DIR/$LIBVPX_SRC_DIR |
| 616 update_readme | 617 update_readme |
| 617 | 618 |
| 618 cd $BASE_DIR | 619 cd $BASE_DIR |
| 619 | 620 |
| 620 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? | 621 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? |
| OLD | NEW |