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

Unified Diff: third_party/polymer/v1_0/reproduce.sh

Issue 1465623008: Add detection of new or removed files to reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/polymer/v1_0/reproduce.sh
diff --git a/third_party/polymer/v1_0/reproduce.sh b/third_party/polymer/v1_0/reproduce.sh
index 25902371754d6762859e553e0a7c88d3e8a84ef9..6ad8bf52e939e4e847a1b92f46165b0a07701797 100755
--- a/third_party/polymer/v1_0/reproduce.sh
+++ b/third_party/polymer/v1_0/reproduce.sh
@@ -64,3 +64,25 @@ sed -i 's/['"$NBSP"']/\\u00A0/g' components/polymer/polymer-mini.html
# and apply additional chrome specific patches. NOTE: Where possible create
# a Polymer issue and/or pull request to minimize these patches.
patch -p1 < chromium.patch
+
+new=$(git status --porcelain components-chromium | grep '^??' | \
+ cut -d' ' -f2 | egrep '\.(html|js|css)$')
+
+if [[ ! -z "${new}" ]]; then
dschuyler 2015/11/21 02:48:48 nit: I'd have a preference for the build-in test '
Dan Beam 2015/11/21 02:56:25 https://google.github.io/styleguide/shell.xml?show
+ echo
+ echo 'These files appear to have been added:'
+ echo "${new}" | sed 's/^/ /'
+fi
+
+deleted=$(git status --porcelain components-chromium | grep '^.D' | \
+ cut -d' ' -f3 | egrep '\.(html|js|css)$')
+
+if [[ ! -z "${deleted}" ]]; then
+ echo
+ echo 'These files appear to have been removed:'
+ echo "${deleted}" | sed 's/^/ /'
+fi
+
+if [[ ! -z "${new}${deleted}" ]]; then
+ echo
+fi
« 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