mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-30 00:37:52 +03:00
19 lines
497 B
Bash
Executable File
19 lines
497 B
Bash
Executable File
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
|
|
# Check version
|
|
# A specific version defines both the grammar format and the HTML output
|
|
actual_version=$(grammar --version | cut -d" " -f2)
|
|
expected_version="0.1.0"
|
|
if [ "$actual_version" != "$expected_version" ] ; then
|
|
echo "version mismatch"
|
|
echo "expected: $expected_version"
|
|
echo "actual: $actual_version"
|
|
exit 1
|
|
fi
|
|
cat <<END >hurl.grammar.html
|
|
<link rel="stylesheet" type="text/css" href="style.css">
|
|
END
|
|
grammar <hurl.grammar >>hurl.grammar.html
|
|
|