Skip to content

Commit 256ff3e

Browse files
Update etc/deploy-doc.sh
1 parent 2294766 commit 256ff3e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

etc/deploy-doc.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,25 @@ if ! [[ -d "gh-pages" ]] ; then
77
exit 1
88
fi
99

10+
if ! [[ $# == 0 || $# == 1 ]] ; then
11+
echo "Usage : $0 [-DDOXYGEN_EXECUTABLE=/path/to/doxygen/executable]"
12+
exit 1
13+
fi
14+
15+
if [[ $# == 1 && "${1:0:21}" != "-DDOXYGEN_EXECUTABLE=" ]] ; then
16+
echo "Usage : $0 [-DDOXYGEN_EXECUTABLE=/path/to/doxygen/executable]"
17+
exit 1
18+
fi
19+
20+
printf "\033[0;32m\033[0m\n"
1021
printf "\033[0;32mDeploying updates to GitHub...\033[0m\n"
1122

1223
mkdir -p build
1324
cd build
1425
if [[ -f Makefile ]] ; then
1526
make clean
1627
fi
17-
cmake ..
28+
cmake .. $1
1829
make doc
1930
cd ..
2031
cp -r build/doc/html/* gh-pages

0 commit comments

Comments
 (0)