пн, 18 февр. 2019 г. в 11:08, Emmanuel Bourg <ebo...@apache.org> > > Le 16/02/2019 à 16:09, Michael Osipov a écrit : > > > The given approach, for whatsoever reason, performs an uppercase and > > replaces dots with underscores. This reduces readability, but also > > requires people (esp. package maintainers) to perform sed(1) magic to > > convert back and forth. > > I agree this is cumbersome, we are doing this kind of manipulation in > Debian too to compare the version packaged with the latest upstream release. >
1. What do we do with RC and milestone release tags, e.g. TOMCAT_7_0_0_RC4, TOMCAT_9_0_0_M27? 9.0.0.M27, 9.0.0-M27, 9.0.0_M27, or the same with lowercase 'm'? Historically, Tomcat 9 used a dot "9.0.0.M27" in announcements and in filenames [1][2], Tomcat 8 used a dash "8.0.0-RC10" in announcements and filenames [3][4] . Tomcat 7 used a "-beta" suffix in filenames [5]. Different downstream packagers (e.g. Maven, RPM) may have different rules regarding handling and sorting such names. The '-' symbol may be special. [1] http://tomcat.apache.org/oldnews-2016.html [2] https://archive.apache.org/dist/tomcat/tomcat-9/ [3] http://tomcat.apache.org/oldnews-2013.html [4] https://archive.apache.org/dist/tomcat/tomcat-8/ [5] https://archive.apache.org/dist/tomcat/tomcat-7/ My preference is to stick with the current historical format of tag names (TOMCAT_) and let downstream deal with proper parsing and formatting of these numbers. > to perform sed(1) magic 2. The prefix "TOMCAT_x_y_" is fixed in a particular branch and has known length. I had processed similar strings with 'cut' utility [6]. This can also be processed by parameters substitution in shell [7]. Though somebody may call that magic as well. [6] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cut.html [7] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02 Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org