Selaa lähdekoodia

scripts/configure.pl: add function to generate a nightly version string

Matthias Schiffer 10 vuotta sitten
vanhempi
commit
9f3a09a765
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      scripts/configure.pl

+ 6 - 0
scripts/configure.pl

@@ -2,6 +2,12 @@
 
 
 use warnings;
 use warnings;
 use strict;
 use strict;
+use POSIX qw(strftime);
+
+
+sub nightly {
+    strftime "%Y%m%d", localtime;
+}
 
 
 
 
 our $CONFIG = do $ENV{GLUONDIR} . '/site/site.conf';
 our $CONFIG = do $ENV{GLUONDIR} . '/site/site.conf';