Explorar o código

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

Matthias Schiffer %!s(int64=10) %!d(string=hai) anos
pai
achega
9f3a09a765
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      scripts/configure.pl

+ 6 - 0
scripts/configure.pl

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