common.inc 659 B

1234567891011121314
  1. # NOTE: packaging is strongly coupled to the github tarball URL and naming scheme
  2. GITHUB_REPO_NAME='loopidity'
  3. MINOR_REVISION_TAG=$(git tag --list --merged | grep -G '^v[0-9]*\.[0-9]*$' | tail -n1)
  4. REVISION_TAGS=$(git tag --list | grep -G '^v[0-9]*\.[0-9]*\.[0-9].*$')
  5. [ "$(ps -p $PPID -o command= | grep '\-\-amend')" ] && INCREMENT_REVISION=0 || INCREMENT_REVISION=1
  6. N_REVISIONS_AHEAD=$(git rev-list $MINOR_REVISION_TAG..HEAD --count)
  7. GIT_USER=$(git config user.name)
  8. GPG_KEY=$(git config user.signingkey)
  9. [ "$GIT_USER" ] || (echo "git config user.name - not set" ; exit 1)
  10. [ "$GPG_KEY" ] || (echo "git config user.signingkey - not set" ; exit 1)