]> git.proxmox.com Git - mirror_qemu.git/blame - scripts/hxtool
iotests: add filter_qmp_generated_node_ids()
[mirror_qemu.git] / scripts / hxtool
CommitLineData
5824d651
BS
1#!/bin/sh
2
3hxtoh()
4{
5 flag=1
fb21ced7 6 while read -r str; do
5824d651
BS
7 case $str in
8 HXCOMM*)
9 ;;
3885e2c2 10 SRST*|ERST*) flag=$(($flag^1))
5824d651
BS
11 ;;
12 *)
004efc96 13 test $flag -eq 1 && printf "%s\n" "$str"
5824d651
BS
14 ;;
15 esac
16 done
17}
18
5824d651
BS
19case "$1" in
20"-h") hxtoh ;;
5824d651 21*) exit 1 ;;
3f885659 22esac < "$2"
5c2f8d2d
BS
23
24exit 0