Skip to content

Commit 01a4763

Browse files
author
Rik
committed
build: Use Perl to calculate JAR_DATE for portability to MacOS & BSD (bug #67140)
* scripts/java/module.mk: Use Perl to calculate ISO-8601 date string for variable JAR_DATE.
1 parent eeebb30 commit 01a4763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/java/module.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $(%canon_reldir%_JAVA_CLASSES) : %.class : %.java | %reldir%/$(octave_dirstamp)
5353
$(org_octave_dir)/$(<F) )
5454

5555
if AMCOND_HAVE_JAVA
56-
JAR_DATE = $(shell date -u -d"@$(SOURCE_MTIME)" -I'seconds')
56+
JAR_DATE = $(shell $(PERL) -MPOSIX -e 'print strftime ("%Y-%m-%dT%H:%M:%S+00:00", gmtime ($(SOURCE_MTIME)))')
5757

5858
%reldir%/octave.jar: $(%canon_reldir%_JAVA_CLASSES)
5959
$(OCT_V_JAR)rm -f $@-t $@ && \

0 commit comments

Comments
 (0)