From: Luis R. Rodriguez Date: Mon, 27 Sep 2010 22:55:18 +0000 (-0700) Subject: compat-wireless: add support for printing stats for pending-stable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4f5305ffd62ff67b4936877b5d20b1e3a1513dca;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: add support for printing stats for pending-stable Signed-off-by: Luis R. Rodriguez --- 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 ;;