Commit 9f37357
Support new VERSION/BUILD\_NUMBER files for non-Git versioning fallback
Enhances `getversion` to handle both legacy and new formats for versioning
in non-Git environments.
Specifically:
* If the `VERSION` file contains a line like `<version> build <build_number>`,
both values are extracted as before.
* If `VERSION` is a single line and `BUILD_NUMBER` exists, they are combined.
This supports Apache Cloudberry packaging conventions while maintaining
backward compatibility with earlier versioning styles.
Header documentation updated to clarify both paths.1 parent a3bcbcb commit 9f37357
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
104 | | - | |
105 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
106 | 120 | | |
107 | 121 | | |
108 | 122 | | |
| |||
0 commit comments