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

⌈⌋ branch:  version numbers get/write


Hex Artifact Content

Artifact e0cf9bd3791270dda1521c4dc43601b67551cfc0:

  • Executable file mk — part of check-in [4191d9fe50] at 2014-02-07 19:42:57 on branch trunk — manpage and build script (for local deb/ template) (user: mario size: 274)

0000: 23 21 2f 62 69 6e 2f 73 68 0a 0a 67 7a 69 70 20  #!/bin/sh..gzip 
0010: 2d 63 39 20 3c 20 31 2e 31 20 3e 20 64 65 62 2f  -c9 < 1.1 > deb/
0020: 75 73 72 2f 73 68 61 72 65 2f 6d 61 6e 2f 6d 61  usr/share/man/ma
0030: 6e 31 2f 76 65 72 73 69 6f 6e 2e 31 2e 67 7a 0a  n1/version.1.gz.
0040: 56 45 52 53 49 4f 4e 3d 24 28 76 65 72 73 69 6f  VERSION=$(versio
0050: 6e 20 2d 2d 72 65 61 64 20 76 65 72 73 69 6f 6e  n --read version
0060: 2e 70 68 70 20 2d 2d 62 75 6d 70 20 2d 2d 73 68  .php --bump --sh
0070: 6f 77 20 2d 2d 77 72 69 74 65 3a 3a 32 20 76 65  ow --write::2 ve
0080: 72 73 69 6f 6e 2e 70 68 70 20 2d 2d 77 72 69 74  rsion.php --writ
0090: 65 20 64 65 62 2f 44 45 42 49 41 4e 2f 63 6f 6e  e deb/DEBIAN/con
00a0: 74 72 6f 6c 29 0a 0a 66 61 6b 65 72 6f 6f 74 20  trol)..fakeroot 
00b0: 64 70 6b 67 2d 64 65 62 20 2d 62 20 64 65 62 2f  dpkg-deb -b deb/
00c0: 20 76 65 72 73 69 6f 6e 5f 24 56 45 52 53 49 4f   version_$VERSIO
00d0: 4e 2e 64 65 62 0a 64 70 6b 67 2d 73 69 67 20 2d  N.deb.dpkg-sig -
00e0: 73 20 62 75 69 6c 64 65 72 20 2d 6b 20 69 6e 63  s builder -k inc
00f0: 6c 75 64 65 2d 6f 6e 63 65 20 2d 76 20 76 65 72  lude-once -v ver
0100: 73 69 6f 6e 5f 24 56 45 52 53 49 4f 4e 2e 64 65  sion_$VERSION.de
0110: 62 0a                                            b.