The mkmed-version program

mkmed-version {-n|-o|-c} /path/to/foo-1.0 /path/to/foo-2.0 [program arg ...]

mkmed-version creates a new package version (foo-2.0) as a copy of an existing version (foo-1.0). One of -n, -o, or -c must be given, to control how version numbers are recorded in the src/as-is/package/versions file in the existing version and in the created version. The created version's number is determined by parsing the pathname.

Finally, if any arguments are given after the new package version path, mkmed-version runs the given command.