2016-10-19 07:12:55 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
TOP_DIR=$1
|
|
|
|
|
2021-08-14 07:03:16 -04:00
|
|
|
rofi -h -config "${TOP_DIR}/doc/test_xr.txt" | awk 'BEGIN{ found=1} /^Global options:/{found=0} {if (found) print }' > help-output.txt
|
2016-10-19 07:12:55 -04:00
|
|
|
|
2021-08-14 07:03:16 -04:00
|
|
|
if ! diff help-output.txt "${TOP_DIR}/doc/help-output.txt" >/dev/null
|
2016-10-19 07:12:55 -04:00
|
|
|
then
|
2021-08-14 07:03:16 -04:00
|
|
|
diff help-output.txt "${TOP_DIR}/doc/help-output.txt"
|
2016-10-19 07:12:55 -04:00
|
|
|
echo "Help output does not match."
|
2021-08-14 07:03:16 -04:00
|
|
|
exit 1
|
2016-10-19 07:12:55 -04:00
|
|
|
fi
|
|
|
|
|
2021-08-14 07:03:16 -04:00
|
|
|
exit "${RETV}"
|