freebsd-ports/cad/calculix-ccx/files/patch-date.pl
Fernando Apesteguía 14114e551a cad/calculix-ccx: Update to 2.21
ChangeLog: http://www.dhondt.de/new_calc.htm

PR:		272890
Reported by:	rsmith@xs4all.nl (maintainer)
2023-08-04 08:12:42 +02:00

11 lines
263 B
Perl

--- date.pl.orig 2022-07-31 16:06:31 UTC
+++ date.pl
@@ -1,6 +1,7 @@
#!/usr/bin/env perl
-chomp($date=`date`);
+use POSIX qw(strftime);
+chomp(my $date = strftime("%Y-%m-%d", gmtime($ENV{SOURCE_DATE_EPOCH} || time)));
# inserting the date into ccx_2.21.c