blob: f3787a9fa4a0eccb397a08268b5582e907d7c400 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env bash
TOP_DIR=$1
rofi -h -config ${TOP_DIR}/doc/test_xr.txt | awk 'BEGIN{ found=1} /^Global options:/{found=0} {if (found) print }' > help-output.txt
if ! diff help-output.txt ${TOP_DIR}/doc/help-output.txt > /dev/null
then
diff help-output.txt ${TOP_DIR}/doc/help-output.txt
echo "Help output does not match."
exit 1;
fi
exit ${RETV}
|