mirror of https://github.com/ludocode/mpack
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
482 B
Bash
21 lines
482 B
Bash
#!/bin/bash
|
|
cd "$(dirname "$0")"/..
|
|
source tools/getversion.sh
|
|
mkdir -p .build/docs
|
|
|
|
# Write temporary README.md without "Build Status" section
|
|
cat README.md | \
|
|
sed '/^## Build Status/,/^##/{//!d}' | \
|
|
sed '/^## Build Status/d' \
|
|
> .build/docs/README.temp.md
|
|
|
|
# Generate docs with correct version number
|
|
(
|
|
cat docs/doxyfile
|
|
echo "PROJECT_NUMBER = $VERSION"
|
|
echo
|
|
) | doxygen - || exit 1
|
|
|
|
echo
|
|
echo "Docs generated: file://$(pwd)/.build/docs/html/index.html"
|