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.

26 lines
651 B

пре 1 година
  1. #!/usr/bin/env bash
  2. SNUGLOG_DIR=.
  3. if [ $# -ge 1 ]; then
  4. SNUGLOG_DIR=$1
  5. fi
  6. SNUGLOG_DIR=$(realpath "$SNUGLOG_DIR")
  7. source "$SNUGLOG_DIR/tools/config/defaults"
  8. if [ $# -ge 2 ]; then
  9. source "$2"
  10. elif [ -f "$SNUGLOG_DIR/tools/config/override" ]; then
  11. source "$SNUGLOG_DIR/tools/config/override"
  12. fi
  13. if test "$MUST_REWRITE_PATHS" -eq 1 && test ! "$REWRITE_ENABLED" && [[ ! "$1" =~ /\s/g ]] && [[ ! "$2" =~ /\s/g ]]; then
  14. export REWRITE_ENABLED=1
  15. (echo "$0 $@" | /usr/bin/env bash) 2>&1 | sed $REWRITE_PATHS
  16. export REWRITE_ENABLED=0
  17. else
  18. # Execute doxygen in the correct directory
  19. cd "$SNUGLOG_DIR" || exit 42
  20. "$DOXYGEN" "$DOXYFILE"
  21. fi