debug-constants.sh.inc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # git-packaging-hooks - git hooks to semi-automate releases and distro packaging
  2. #
  3. # Copyright 2017 bill-auger <https://github.com/bill-auger/git-packaging-hooks/issues>
  4. #
  5. # git-packaging-hooks is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License version 3 as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # git-packaging-hooks is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License version 3
  16. # along with git-packaging-hooks. If not, see <http://www.gnu.org/licenses/>.
  17. echo -e "\n==== DEBUG BEGIN ===="
  18. [ "$IS_AMEND_COMMIT" == "1" ] && echo "!! IS_AMEND_COMMIT" || echo "! IS_AMEND_COMMIT"
  19. [ "$IS_PRE_COMMIT_STAGE" == "1" ] && echo "!! IS_PRE_COMMIT_STAGE" || echo "! IS_PRE_COMMIT_STAGE"
  20. [ "$IS_STAGING_BRANCH" == "1" ] && echo "!! IS_STAGING_BRANCH" || echo "! IS_STAGING_BRANCH"
  21. [ "$IS_PACKAGING_BRANCH" == "1" ] && echo "!! IS_PACKAGING_BRANCH" || echo "! IS_PACKAGING_BRANCH"
  22. [ "$SHOULD_INCREMENT_REVISION" == "1" ] && echo "!! SHOULD_INCREMENT_REVISION" || echo "! SHOULD_INCREMENT_REVISION"
  23. # echo "branch_tags=$branch_tags"
  24. # echo "branch_minor_tags=$branch_minor_tags"
  25. # echo "branch_rev_tags=$branch_rev_tags"
  26. # echo "unmerged_tags=$unmerged_tags"
  27. # echo "unmerged_rev_tags=$unmerged_rev_tags"
  28. echo "HEAD_REF = $HEAD_REF"
  29. echo "MINOR_VERSION_REF = $MINOR_VERSION_REF"
  30. echo "LAST_REVISION_REF = $LAST_REVISION_REF"
  31. echo "MINOR_VERSION_TAG = $MINOR_VERSION_TAG"
  32. echo "LAST_REVISION_TAG = $LAST_REVISION_TAG"
  33. echo "HIGHEST_REV_TAG = $HIGHEST_REV_TAG"
  34. echo "N_REVISIONS_AHEAD = $N_REVISIONS_AHEAD # (upon completion)"
  35. echo "VERSION_STRING = $VERSION_STRING"
  36. [ -f $TAGS_FILE ] && echo "\$TAGS_FILE exists - orphaned tags to restore: '$(cat $TAGS_FILE | sort | uniq | tr "\n" " ")'"
  37. echo -e "==== DEBUG END ====\n"