]> granicus.if.org Git - graphviz/commitdiff
Use tilde instead of dash for dev versions
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Thu, 23 Jul 2020 20:40:17 +0000 (22:40 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 28 Jul 2020 15:54:16 +0000 (17:54 +0200)
RPM doesn't support dash in version numbers. From
http://ftp.rpm.org/max-rpm/ch-rpm-file-format.html: 'The only
restriction placed on the version is that it cannot contain a dash
"-".'

See also https://github.com/semver/semver/issues/145.

gen_version.py

index eeac723d66c81237f1d0b7f333af2ead9f63f13e..1c307210de71ae9cf892ab0bb1233d5dd51920d1 100644 (file)
@@ -1,24 +1,24 @@
 # Generate version
 #
 # Stable release entry format     : <major>.<minor>.>patch>
-# Development release entry format: <major>.<minor>.<patch>-dev
+# Development release entry format: <major>.<minor>.<patch>~dev
 #
 # Stable release output format     : <major>.<minor>.<patch>
-# Development release output format: <major>.<minor>.<patch>-dev.<YYYYmmdd.HHMM>
+# Development release output format: <major>.<minor>.<patch>~dev.<YYYYmmdd.HHMM>
 
 # The patch version of a development release should be the next stable
-# release patch number followed by "-dev". The committer date will be
+# release patch number followed by "~dev". The committer date will be
 # added with a period separator.
 #
 # Example sequence:
 #
 # Entry          Output
 # 2.44.1      => 2.44.1
-# 2.44.2-dev  => 2.44.2-dev.20200704.1652
+# 2.44.2~dev  => 2.44.2~dev.20200704.1652
 # 2.44.2      => 2.44.2
-# 2.44.3-dev  => 2.44.3-dev.20200824.1337
+# 2.44.3~dev  => 2.44.3~dev.20200824.1337
 
-version = '2.44.2-dev'
+version = '2.44.2~dev'
 
 import os
 import sys