summaryrefslogtreecommitdiff
path: root/Resource
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2023-02-27 09:47:50 +0000
committerChris Liddell <chris.liddell@artifex.com>2023-02-27 14:39:45 +0000
commitcc86ef9a49487d2a71d0f49b201853a43038d34c (patch)
tree40b11fbae0e98fbf564b6f53492f18ca4e7b9dd1 /Resource
parentd68bb39be2c7ff5ad4d7e702737bfd21395ec19e (diff)
downloadghostpdl-cc86ef9a49487d2a71d0f49b201853a43038d34c.tar.gz
Bug 706389: Fix versioning format consistency
The main code issue with this bug was that the banner printed on startup is printed from Postscript, and Postscript's cvs operator doesn't allow for dictating the number of digits it outputs so the number 00 will always end up as the string "0", or 01 as "1". So our 10.01.0 version would be printed as "10.1.0". To address this, as a ".revisionstring" entry to systemdict, created during startup, the string is created in C, so we control the format. The remaining issues need to be address as part of the release process.
Diffstat (limited to 'Resource')
-rw-r--r--Resource/Init/gs_init.ps6
1 files changed, 2 insertions, 4 deletions
diff --git a/Resource/Init/gs_init.ps b/Resource/Init/gs_init.ps
index 1ac5a9262..c364f3e03 100644
--- a/Resource/Init/gs_init.ps
+++ b/Resource/Init/gs_init.ps
@@ -1,4 +1,4 @@
-% Copyright (C) 2001-2022 Artifex Software, Inc.
+% Copyright (C) 2001-2023 Artifex Software, Inc.
% All Rights Reserved.
%
% This software is provided AS-IS with no warranty, either express or
@@ -283,9 +283,7 @@ userdict /=string 256 string put
(\)\n) revisiondate 10 mod revisiondate 10 idiv 10 mod (-)
revisiondate 100 idiv 10 mod revisiondate 1000 idiv 10 mod (-)
revisiondate 10000 idiv ( \()
- revision 10 mod (.)
- revision 1000 mod 10 idiv (.)
- revision 1000 idiv ( )
+ .revisionstring ( )
product
counttomark
{ (%stdout) (w) file exch 0 .writecvp