Branch : - branch - develop v1.2 - tag - 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.20 0.21 0.22 0.23 0.24 0.25 0.26 0.27 0.28 0.29 0.30 0.31 0.32 0.33 0.34 0.35 0.36 0.37 0.38 0.39 0.40 0.41 semver v0.42.0 v0.43.0-rc0 v1.0 v1.0-rc1 v1.0-rc2 v1.0.0-rc0 v1.0.1 v1.0.1-rc1 v1.0.1-rc2 v1.1.0 v1.1.0-rc1 v1.1.0-rc2 v1.1.0-rc3 v1.1.0-rc4 v1.1.0-rc5 v1.2.0 v1.2.0-rc1 v1.2.0-rc2 v1.2.0-rc3
#!/usr/bin/perl # we want to filter every between START_INS and END_INS out and then insert crap from another file (this is fun) use strict; use warnings; open(my $src, '<', shift); open(my $ins, '<', shift); open(my $tmp, '>', 'tmp.delme'); my $l = 0; while (<$src>) { if ($_ =~ /START_INS/) { print {$tmp} $_; $l = 1; while (<$ins>) { print {$tmp} $_; } close $ins; } elsif ($_ =~ /END_INS/) { print {$tmp} $_; $l = 0; } elsif ($l == 0) { print {$tmp} $_; } } close $tmp; close $src; # ref: $Format:%D$ # git commit: $Format:%H$ # commit time: $Format:%ai$