-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b27203a
commit 093dee1
Showing
5 changed files
with
82 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
echo "Collecting docs (all qt help projects)" | ||
find build -name \*.qhp | while read line; do | ||
echo "Adding qt help project $line" | ||
FILENAME=$(basename $line) | ||
QCH_FILE="docs/${FILENAME%.*}.qch" | ||
echo "OUTPUT: $QCH_FILE" | ||
qhelpgenerator $line -o $QCH_FILE | ||
done | ||
|
||
PROJ_FILE=docs.qhcp | ||
|
||
cat > ${PROJ_FILE} << EOF | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<QHelpCollectionProject version="1.0"> | ||
<docFiles> | ||
<register> | ||
EOF | ||
|
||
find docs -name \*.qch | while read line; do | ||
echo "Adding qch file $line" | ||
echo "<file>$line</file>" >> ${PROJ_FILE} | ||
done | ||
|
||
cat >> ${PROJ_FILE} << EOF | ||
</register> | ||
</docFiles> | ||
</QHelpCollectionProject> | ||
EOF | ||
|
||
# TODO: adjust qhcp according to results.. | ||
qcollectiongenerator ${PROJ_FILE} -o docs/docs.qhc | ||
|
||
rm ${PROJ_FILE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
Xvfb :1 & | ||
|
||
export DISPLAY=:1 | ||
|
||
python qchviewer.py -s --qhc docs/docs.qhc | ||
|
||
killall Xvfb |