A C++ library for logging very fast and without allocating.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 regels
651 B

#!/usr/bin/env bash
SNUGLOG_DIR=.
if [ $# -ge 1 ]; then
SNUGLOG_DIR=$1
fi
SNUGLOG_DIR=$(realpath "$SNUGLOG_DIR")
source "$SNUGLOG_DIR/tools/config/defaults"
if [ $# -ge 2 ]; then
source "$2"
elif [ -f "$SNUGLOG_DIR/tools/config/override" ]; then
source "$SNUGLOG_DIR/tools/config/override"
fi
if test "$MUST_REWRITE_PATHS" -eq 1 && test ! "$REWRITE_ENABLED" && [[ ! "$1" =~ /\s/g ]] && [[ ! "$2" =~ /\s/g ]]; then
export REWRITE_ENABLED=1
(echo "$0 $@" | /usr/bin/env bash) 2>&1 | sed $REWRITE_PATHS
export REWRITE_ENABLED=0
else
# Execute doxygen in the correct directory
cd "$SNUGLOG_DIR" || exit 42
"$DOXYGEN" "$DOXYFILE"
fi