Command line tool to duplicate/modify version number strings across source code and distribution files according to syntax context.

⌈⌋ branch:  version numbers get/write


Check-in [7a72fe8b4c]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updated format list to tbl in manpage
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:7a72fe8b4cf1e3fa6e217f85a3b6da88f2f665df
User & Date: mario 2014-02-08 01:42:21
Context
2014-02-08
03:57
Make quotes optional for 'ini', add '.list' extension, move is_valid_ver into rx::, allow optional dashes on --last command, more comments. check-in: a26eca426c user: mario tags: trunk
01:42
Updated format list to tbl in manpage check-in: 7a72fe8b4c user: mario tags: trunk
2014-02-07
19:42
manpage and build script (for local deb/ template) check-in: 4191d9fe50 user: mario tags: trunk
Changes

Changes to 1.1.

135
136
137
138
139
140
141

142
143




144
145
146
147
148
149


150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178


179
180
181
.TP
.IB version " get:php" " /usr/bin/version"
Just shows the version of the version tool.

.SH FORMATS
.TP
.RI "Common file extensions " php ", " py ", " cpp ", " c ", " json ", " sh ", " xml ", " spec " are understood and mapped already to " some " of the internal context / syntax formats (as implemented per regex):"

.TP
.BR debian " (Debian package control)"




Version: 1.0.0
.TP
.BR rpmspec " (RPM package spec)"
%version 1.0.0
.TP
.BR plugin " (generic/php plugin meta data format in " # " or " // " or " /** " blocks)"


# version: 1.0.0
.TP
.B docblock " (documentation version numbers)"
* @version 1.0.0
.TP
.B const " (constant declarations)"
const VERSION = '1.0.0';
.TP
.BR var " (scripting languages syntax)"
$Xyz_version = "1.0.0";
.TP
.BR define " (PHP constant syntax)"
define("XYZ_VERSION", '1.0.0');
.TP
.BR ini " (configuration files)"
version = "1.0.0"
.TP
.BR python " (module numbers)"
__version__ = "1.0.0"
.TP
.BR composer " (JSON)"
{ "version": "1.0.0",
.TP
.BR xmltag " (XML)"
<version>1.0.0</version>
.TP
.BR _raw_ " (match anything)"
This matches virtually anywhere, as it just applies the common version
number syntax regex, but does not take any syntax context into account.



.SH "SEE ALSO"
.BR "http://semver.org/#" (2.0.0) 







>
|
<
>
>
>
>
|
<
<
|
<
<
>
>
|
|
<
|
<
<
|
<
<
|
<
<
|
<
<
|
<
<
|
<
<
|
<
<
|
<
|
|
|
>
>



135
136
137
138
139
140
141
142
143

144
145
146
147
148


149


150
151
152
153

154


155


156


157


158


159


160


161

162
163
164
165
166
167
168
169
.TP
.IB version " get:php" " /usr/bin/version"
Just shows the version of the version tool.

.SH FORMATS
.TP
.RI "Common file extensions " php ", " py ", " cpp ", " c ", " json ", " sh ", " xml ", " spec " are understood and mapped already to " some " of the internal context / syntax formats (as implemented per regex):"
.PP
.TS

allbox;
lb cb cb
li l l.
Format Name	Description	Common Pattern
debian	DEB package control	Version: 1.0.0


rpmspec	RPM package spec	%version 1.0.0


plugin	Generic meta block	T{
/**
 * version: 1.0.0
T}

docblock	Documentation	* @version 1.0.0


const	Constant declarations	const VERSION = '1.0.0';


var	Scripting language syntax	$Xyz_version = "1.0.0";


define	PHP constant defines	define("XYZ_VERSION", '1.0.0');


ini	Configuration files	version = "1.0.0"


python	Module numbers	__version__ = "1.0.0"


composer	JSON	{ "version": "1.0.0",


xmltag	Single XML tag	<version>1.0.0</version>

_raw_	\fBmatch anything\fR	T{
This matches virtually anywhere, as it just applies the common
version number syntax regex, but does not take any syntax context into account.
T}
.TE

.SH "SEE ALSO"
.BR "http://semver.org/#" (2.0.0)