OpenCores
URL https://opencores.org/ocsvn/xulalx25soc/xulalx25soc/trunk

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [xilinx/] [mkdatev.pl] - Blame information for rev 108

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 22 dgisselq
################################################################################
2
##
3
## Filename:    mkdatev.pl
4
##
5
## Project:     XuLA2 board
6
##
7
## Purpose:     This file creates a file containing a `define DATESTAMP
8
##              which can be used to tell when the build took place.
9
##
10
##
11
## Creator:     Dan Gisselquist, Ph.D.
12
##              Gisselquist Technology, LLC
13
##
14
################################################################################
15
##
16
## Copyright (C) 2016, Gisselquist Technology, LLC
17
##
18
## This program is free software (firmware): you can redistribute it and/or
19
## modify it under the terms of  the GNU General Public License as published
20
## by the Free Software Foundation, either version 3 of the License, or (at
21
## your option) any later version.
22
##
23
## This program is distributed in the hope that it will be useful, but WITHOUT
24
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
25
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
26
## for more details.
27
##
28
## License:     GPL, v3, as defined and found on www.gnu.org,
29
##              http:##www.gnu.org/licenses/gpl.html
30
##
31
##
32
################################################################################
33
##
34
##
35
#!/usr/bin/perl
36
 
37
$now = time;
38
($sc,$mn,$nhr,$ndy,$nmo,$nyr,$nwday,$nyday,$nisdst) = localtime($now);
39
$nyr = $nyr+1900; $nmo = $nmo+1;
40
 
41
print "`define DATESTAMP 32\'h";
42
printf("%04d%02d%02d\n", $nyr, $nmo, $ndy);
43
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.