summaryrefslogtreecommitdiffstats
path: root/Auxiliary/vim/extract-upper-case.pl
diff options
context:
space:
mode:
authorPatrick Boettcher <patrick.boettcher@posteo.de>2017-10-31 06:44:53 (GMT)
committerPatrick Boettcher <patrick.boettcher@posteo.de>2017-10-31 06:44:53 (GMT)
commit8a6cdbae16273418d036da8a13aea722ca39cbb3 (patch)
tree173e5a5c56c94ee78129f4998743a739c72ae7e7 /Auxiliary/vim/extract-upper-case.pl
parentfd2e6212a66cd443bbf3e5b6e2cfd77ef1fb7b61 (diff)
parent11225ec6de6d210c24526641dd8b13f03e65adc5 (diff)
downloadCMake-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-xAuxiliary/vim/extract-upper-case.pl5
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";
}