Browse Source

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

Matthias Schiffer 10 years ago
parent
commit
9f3a09a765
1 changed files with 6 additions and 0 deletions
  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';