-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathbuild-docs.sh
More file actions
executable file
·33 lines (29 loc) · 814 Bytes
/
build-docs.sh
File metadata and controls
executable file
·33 lines (29 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
echo "zbar-sharp documentation generation script"
echo "=========================================="
echo ""
echo "This will clear the docs/ folder,"
read -p "Hit ctrl+c to abort, and [Enter] to continue:"
echo ""
#Check if
if [ -d "docs" ]; then
echo "Deleting files from docs/";
rm docs/*;
else
echo "Cloning gh-pages into a docs/";
git clone --reference . -b gh-pages -- `git config --get "remote.origin.url"` docs;
cd docs/;
git rm --ignore-unmatch * > /dev/null;
cd ..;
fi;
#Run doxygen
echo "";
if [[ "$#" == "1" && "$1" == "--verbose" ]]; then
echo "Running doxgen";
doxygen Doxyfile;
else
echo "Running doxgen, use --verbose for warnings";
doxygen Doxyfile > /dev/null 2> /dev/null;
fi;
echo "Documentation generation completed."
echo " - Checkout and publish the documentation"