[haiku-commits] haiku: hrev53492 - 3rdparty/mmu_man/scripts

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 17 Sep 2019 14:01:35 -0400 (EDT)

hrev53492 adds 1 changeset to branch 'master'
old head: f60531661beee9c2bcde5df0e6b821dfc0bdfc24
new head: 96e0ae70d496e4c07e58d9c872ae11662e866b2a
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=96e0ae70d496+%5Ef60531661bee

----------------------------------------------------------------------------

96e0ae70d496: dump_windows: off-by-1
  
  Change-Id: Iaa6bd350cbc8b07016f7a73a267107431e173e93

                                          [ François Revol <revol@xxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53492
Commit:      96e0ae70d496e4c07e58d9c872ae11662e866b2a
URL:         https://git.haiku-os.org/haiku/commit/?id=96e0ae70d496
Author:      François Revol <revol@xxxxxxx>
Date:        Tue Sep 17 17:56:34 2019 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 1 deletion(-)
3rdparty/mmu_man/scripts/dump_windows.sh | 3 ++-

----------------------------------------------------------------------------

diff --git a/3rdparty/mmu_man/scripts/dump_windows.sh 
b/3rdparty/mmu_man/scripts/dump_windows.sh
index 2553834f6a..cf9c10b16c 100755
--- a/3rdparty/mmu_man/scripts/dump_windows.sh
+++ b/3rdparty/mmu_man/scripts/dump_windows.sh
@@ -4,7 +4,8 @@
 roster | sed -n 's/)$//;s/^ *//;/[^64] (/s/ .*(/\t/p' | while read team app; do
        echo "# team $team $app"
        c="$(hey "$team" count Window | grep result | cut -d" " -f 7)"
-       for w in $(seq 1 "$c"); do
+       let c="$c - 1"
+       for w in $(seq 0 "$c"); do
                title="$(hey "$team" get Title of Window "$w" | sed -n 
's/"$//;/"result"/s/.*TYPE) : "//p')"
                frame="$(hey "$team" get Frame of Window "$w" | sed -n 
's/)$//;/"result"/s/.*TYPE) : BRect(//p')"
                echo "hey \"$app\" set Frame of Window \"$title\" to 
\"BRect($frame)\""


Other related posts:

  • » [haiku-commits] haiku: hrev53492 - 3rdparty/mmu_man/scripts - François Revol