A C++ library for logging very fast and without allocating.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

26 lignes
651 B

  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