#!/bin/bash
# release.sh: bump + publish ntx-octolux-toolkit.
# Usage:  ./release.sh [--bump patch|minor|major]
set -euo pipefail
DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$DIR"
case "${1:-}" in
  --bump) adompkg version "${2:-patch}" ;;
  --bump=patch|--bump=minor|--bump=major) adompkg version "${1#--bump=}" ;;
esac
adompkg publish