]> Git Repo - qemu.git/blame - scripts/hxtool
python: remove more instances of sys.version_info
[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
BS
21*) exit 1 ;;
22esac
5c2f8d2d
BS
23
24exit 0
This page took 0.686025 seconds and 4 git commands to generate.