1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 03:00:42 -04:00
ports/cad/calculix-ccx/files/patch-date.pl
Pedro F. Giffuni 5cf3fd43c6 cad/calculix{-ccx}: Update to version 2.19
Approved by:	thierry (mentor, implicit)
2022-02-01 21:05:48 -05:00

11 lines
263 B
Perl

--- date.pl.orig 2021-12-17 12:13:23 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.19.c