]> git.proxmox.com Git - mirror_qemu.git/blame_incremental - scripts/hxtool
Merge tag 'fixes-pull-request' of gitlab.com:marcandre.lureau/qemu into staging
[mirror_qemu.git] / scripts / hxtool
... / ...
CommitLineData
1#!/bin/sh
2
3hxtoh()
4{
5 flag=1
6 while read -r str; do
7 case $str in
8 HXCOMM*)
9 ;;
10 SRST*|ERST*) flag=$(($flag^1))
11 ;;
12 *)
13 test $flag -eq 1 && printf "%s\n" "$str"
14 ;;
15 esac
16 done
17}
18
19case "$1" in
20"-h") hxtoh ;;
21*) exit 1 ;;
22esac < "$2"
23
24exit 0