From 4f5305ffd62ff67b4936877b5d20b1e3a1513dca Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Mon, 27 Sep 2010 15:55:18 -0700 Subject: [PATCH] compat-wireless: add support for printing stats for pending-stable Signed-off-by: Luis R. Rodriguez --- scripts/admin-update.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index 0abafb58131d..c1cf1f21c87f 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -71,6 +71,13 @@ brag_backport() { $(perl -e 'printf("%.4f", 100 * '$COMPAT_ALL_CHANGES' / '$1');') } +nag_pending_stable() { + printf "${YELLOW}%10s${NORMAL} - Code changes brought in from pending-stable\n" $2 + printf "${YELLOW}%10s${NORMAL} - Code additions brought in from pending-stable\n" $3 + printf "${YELLOW}%10s${NORMAL} - Code deletions brought in from pending-stable\n" $4 + printf "${RED}%10s${NORMAL} - %% of code being cherry picked from pending-stable\n" $(perl -e 'printf("%.4f", 100 * '$2' / '$1');') +} + nag_next_cherry_pick() { printf "${YELLOW}%10s${NORMAL} - Code changes brought in from linux-next\n" $2 printf "${YELLOW}%10s${NORMAL} - Code additions brought in from linux-next\n" $3 @@ -108,6 +115,9 @@ nagometer() { "patches") brag_backport $ORIG_CODE $CHANGES $ADD $DEL ;; + "pending-stable") + nag_pending_stable $ORIG_CODE $CHANGES $ADD $DEL + ;; "linux-next-cherry-picks") nag_next_cherry_pick $ORIG_CODE $CHANGES $ADD $DEL ;; -- 2.30.2