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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
446 egrep "#define [A-Z0-9_]+ [01]" vpx_config.h | awk '{print $2 " EQU " $3}' | perl $BASE_DIR/$LIBVPX_SRC_DIR/build/make/ads2gas.pl > vpx_config.asm | 446 egrep "#define [A-Z0-9_]+ [01]" vpx_config.h | awk '{print $2 " EQU " $3}' | perl $BASE_DIR/$LIBVPX_SRC_DIR/build/make/ads2gas.pl > vpx_config.asm |
447 fi | 447 fi |
448 fi | 448 fi |
449 | 449 |
450 cp vpx_config.* $BASE_DIR/$LIBVPX_CONFIG_DIR/$1 | 450 cp vpx_config.* $BASE_DIR/$LIBVPX_CONFIG_DIR/$1 |
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 echo "here" | |
Johann
2016/08/30 17:08:59
debug from trying to figure out the sed error?
marpan
2016/08/30 17:17:31
Done.
| |
456 local IFS=$'\n' | 457 local IFS=$'\n' |
457 # Split git log output '<date>\n<commit hash>' on the newline to produce 2 | 458 # Split git log output '<date>\n<commit hash>' on the newline to produce 2 |
458 # array entries. | 459 # array entries. |
459 local vals=($(git --no-pager log -1 --format="%cd%n%H" \ | 460 local vals=($(git --no-pager log -1 --format="%cd%n%H" \ |
460 --date=format:"%A %B %d %Y")) | 461 --date=format:"%A %B %d %Y")) |
461 sed -E -i '' \ | 462 sed -E -i '' \ |
462 -e "s/^(Date:)[[:space:]]+.*$/\1 ${vals[0]}/" \ | 463 -e "s/^(Date:)[[:space:]]+.*$/\1 ${vals[0]}/" \ |
463 -e "s/^(Commit:)[[:space:]]+[a-f0-9]{40}/\1 ${vals[1]}/" \ | 464 -e "s/^(Commit:)[[:space:]]+[a-f0-9]{40}/\1 ${vals[1]}/" \ |
464 ${BASE_DIR}/README.chromium | 465 ${BASE_DIR}/README.chromium |
465 cat <<EOF | 466 cat <<EOF |
(...skipping 145 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 |