Update scripts
This commit is contained in:
parent
5f1168368f
commit
1931fb96dd
|
@ -11,7 +11,7 @@ source "$SCRIPTS_DIR/common/mkdir.sh"
|
||||||
source "$SCRIPTS_DIR/common/detect.sh"
|
source "$SCRIPTS_DIR/common/detect.sh"
|
||||||
|
|
||||||
_detect "doxygen"
|
_detect "doxygen"
|
||||||
_detect "pdflatex"
|
_detect "pdflatex" 1
|
||||||
|
|
||||||
source "$BASE_DIR/langs.sh"
|
source "$BASE_DIR/langs.sh"
|
||||||
DOXYFILE="api.doxyfile"
|
DOXYFILE="api.doxyfile"
|
||||||
|
@ -19,12 +19,13 @@ OUTPUT="$BASE_DIR/output"
|
||||||
|
|
||||||
for lang in "${LANGS[@]}"; do
|
for lang in "${LANGS[@]}"; do
|
||||||
_echo_s "Build doc $lang"
|
_echo_s "Build doc $lang"
|
||||||
|
[ -d "$BASE_DIR/$lang" ] || continue
|
||||||
cd "$BASE_DIR/$lang"
|
cd "$BASE_DIR/$lang"
|
||||||
if [ -f "$DOXYFILE" ]; then
|
if [ -f "$DOXYFILE" ]; then
|
||||||
_mkdir "$OUTPUT/$lang"
|
_mkdir "$OUTPUT/$lang"
|
||||||
_echo_i "doxygen $DOXYFILE"
|
_echo_i "doxygen $DOXYFILE"
|
||||||
doxygen $DOXYFILE
|
doxygen $DOXYFILE
|
||||||
if [ -f "$OUTPUT/$lang/latex/Makefile" ]; then
|
if [ $pdflatex_FOUND ] && [ -f "$OUTPUT/$lang/latex/Makefile" ]; then
|
||||||
_echo_in "doxygen make latex"
|
_echo_in "doxygen make latex"
|
||||||
cd "$OUTPUT/$lang/latex" && make
|
cd "$OUTPUT/$lang/latex" && make
|
||||||
[ -f "refman.pdf" ] && mv "refman.pdf" "../mynteye-apidoc.pdf"
|
[ -f "refman.pdf" ] && mv "refman.pdf" "../mynteye-apidoc.pdf"
|
||||||
|
|
|
@ -9,7 +9,11 @@
|
||||||
# source "$(dirname "$0")/echo.sh"
|
# source "$(dirname "$0")/echo.sh"
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
|
if [ "$OS" = "Windows_NT" ]; then
|
||||||
|
ECHO="echo -e"
|
||||||
|
else
|
||||||
ECHO="echo"
|
ECHO="echo"
|
||||||
|
fi
|
||||||
|
|
||||||
# task colors
|
# task colors
|
||||||
COLOR_STRONG="1;35" # Magenta
|
COLOR_STRONG="1;35" # Magenta
|
||||||
|
|
|
@ -32,7 +32,7 @@ if _host_contains_ "$_UNAME_S" "Linux"; then
|
||||||
HOST_OS="Linux"
|
HOST_OS="Linux"
|
||||||
elif _host_contains_ "$_UNAME_S" "Darwin"; then
|
elif _host_contains_ "$_UNAME_S" "Darwin"; then
|
||||||
HOST_OS="Mac"
|
HOST_OS="Mac"
|
||||||
elif [ -n "$Windows_NT" ]; then
|
elif _host_contains_ "$_UNAME_S" "MSYS\|MINGW"; then
|
||||||
HOST_OS="Win"
|
HOST_OS="Win"
|
||||||
else
|
else
|
||||||
echo >&2 "-- HOST: unknown os :("
|
echo >&2 "-- HOST: unknown os :("
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
FIND="find"
|
||||||
|
|
||||||
if type where &> /dev/null; then
|
if type where &> /dev/null; then
|
||||||
for i in `where find`; do
|
for i in `where find`; do
|
||||||
# find on MSYS instead of Windows
|
# find on MSYS instead of Windows
|
||||||
if [ `echo $i | grep -c "msys"` -gt 0 ]; then
|
if [ `echo $i | grep -c "msys"` -gt 0 ]; then
|
||||||
echo "${i%.exe}" | tr -d "[:space:]" | sed -e 's/\\/\//g'
|
FIND=`echo "${i%.exe}" | tr -d "[:space:]" | sed 's:\\\:/:g'`
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "find"
|
echo "$FIND"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user