mkmed-version
programmkmed-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.
-n
creates a “new” version: the
src/as-is/package/versions
file of the created version will
include all version numbers listed in the existing version's file,
followed by the version number of the created version itself. The
existing version's file will be left unchanged.-o
creates an “old” version: the version
number of the created version is inserted in the existing
version's src/as-is/package/versions
file, just before the
last version number. The created version's file includes all version
numbers up to its own, but does not include the last number from the
existing version's file. This is useful if the existing version is an
ongoing development copy with its own version number recorded in the
list, and the created version will be a public release which should not
contain any reference to the development version.-c
creates a “clone” version: the version
number of the created version is appended to the existing
version's src/as-is/package/versions
file, and then that
file is copied into the created version. This is useful if the existing
version is an ongoing development copy, but without a version number of
its own recorded in the list, and the created version will be a public
release.
Finally, if any arguments are given after the new package version
path, mkmed-version
runs the given command.