Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/cad/calculix-ccx/files/patch-date.pl
16149 views
1
--- date.pl.orig 2020-07-23 19:41:38 UTC
2
+++ date.pl
3
@@ -1,6 +1,7 @@
4
#!/usr/bin/env perl
5
6
-chomp($date=`date`);
7
+use POSIX qw(strftime);
8
+chomp(my $date = strftime("%Y-%m-%d", gmtime($ENV{SOURCE_DATE_EPOCH} || time)));
9
10
# inserting the date into ccx_2.17.c
11
12
13