compat-wireless: add support for printing stats for pending-stable
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 27 Sep 2010 22:55:18 +0000 (15:55 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 27 Sep 2010 23:12:53 +0000 (16:12 -0700)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
scripts/admin-update.sh

index 0abafb58131d2a5acb78d3a7ddfa502a0a2be256..c1cf1f21c87f79bc7a85bb8669c1643e76b12bfc 100755 (executable)
@@ -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
                ;;