Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Unified Diff: third_party/libvpx/generate_gypi.sh

Issue 2295903003: Reconcile BSD and GNU sed (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libvpx/generate_gypi.sh
diff --git a/third_party/libvpx/generate_gypi.sh b/third_party/libvpx/generate_gypi.sh
index 13086d76bd2af7243e3ab71b79f7ff0afcf15040..811200c670d200f5164868f850a0b1942e8cec85 100755
--- a/third_party/libvpx/generate_gypi.sh
+++ b/third_party/libvpx/generate_gypi.sh
@@ -458,10 +458,11 @@ function update_readme {
# array entries.
local vals=($(git --no-pager log -1 --format="%cd%n%H" \
--date=format:"%A %B %d %Y"))
- sed -E -i '' \
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
+ sed -E -i.bak \
-e "s/^(Date:)[[:space:]]+.*$/\1 ${vals[0]}/" \
-e "s/^(Commit:)[[:space:]]+[a-f0-9]{40}/\1 ${vals[1]}/" \
${BASE_DIR}/README.chromium
+ rm ${BASE_DIR}/README.chromium.bak
cat <<EOF
README.chromium updated with:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698