diff options
author | Patrick Boettcher <patrick.boettcher@posteo.de> | 2017-10-31 06:44:53 (GMT) |
---|---|---|
committer | Patrick Boettcher <patrick.boettcher@posteo.de> | 2017-10-31 06:44:53 (GMT) |
commit | 8a6cdbae16273418d036da8a13aea722ca39cbb3 (patch) | |
tree | 173e5a5c56c94ee78129f4998743a739c72ae7e7 /Auxiliary/vim/extract-upper-case.pl | |
parent | fd2e6212a66cd443bbf3e5b6e2cfd77ef1fb7b61 (diff) | |
parent | 11225ec6de6d210c24526641dd8b13f03e65adc5 (diff) | |
download | CMake-8a6cdbae16273418d036da8a13aea722ca39cbb3.zip CMake-8a6cdbae16273418d036da8a13aea722ca39cbb3.tar.gz CMake-8a6cdbae16273418d036da8a13aea722ca39cbb3.tar.bz2 |
update vim-syntax to latest cmake-commit
Diffstat (limited to 'Auxiliary/vim/extract-upper-case.pl')
-rwxr-xr-x | Auxiliary/vim/extract-upper-case.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Auxiliary/vim/extract-upper-case.pl b/Auxiliary/vim/extract-upper-case.pl index 9e3c439..6dbb678 100755 --- a/Auxiliary/vim/extract-upper-case.pl +++ b/Auxiliary/vim/extract-upper-case.pl @@ -2,6 +2,7 @@ use strict; use warnings; +use POSIX qw(strftime); #my $cmake = "/home/pboettch/devel/upstream/cmake/build/bin/cmake"; my $cmake = "cmake"; @@ -129,6 +130,10 @@ while(<IN>) } elsif ($1 eq "VERSION") { $_ =~ s/\@VERSION\@/$version/; print OUT $_; + } elsif ($1 eq "DATE") { + my $date = strftime "%Y %b %d", localtime; + $_ =~ s/\@DATE\@/$date/; + print OUT $_; } else { print "ERROR do not know how to replace $1\n"; } |