#!/bin/sh ## dictver -- dictionary versioning ## by C. Duckworth # # DICTVER is a new versioning scheme that I've just decided I will use # everywhere. It works like this: # # - Versions are words. # - If version A comes after version B in the dictionary, it's a later # version. # - If the first letter of version A is different than the first # letter of version B, it's a major (possibly backward-incompatible) # upgrade. # - Otherwise, it's a minor upgrade. # # This program will, when given the current version of a project, bump # that version to another one. See usage() for details. usage() { cat >&2 <&2 "No more letters?!" exit 2 ;; esac } main() { do_opts; shift $OPTIND; echo $MAJORP, $MIN, $MAX test -n "$1" || usage 1 get_context "$1" | sort -R | head -n1 } set -x main "$@"