From a38aba0f1497166147283183bebe3abdd0b9a8e5 Mon Sep 17 00:00:00 2001 From: Swayam Shah Date: Sat, 30 Nov 2024 18:57:38 +0530 Subject: [PATCH 1/2] Support for both(BSD & GNU tar) --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 12dcbcb49..02c8f0759 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ HTML_TARBALL := ${HTML_DIR}.tar.gz OCTAVE ?= octave MATLAB ?= matlab +TAR ?= tar .PHONY: help clean install test doctest dist dist_zip html matlab_test matlab_pkg @@ -46,7 +47,7 @@ define create_tarball $(shell cd $(dir $(1)) \ && find $(notdir $(1)) -print0 \ | LC_ALL=C sort -z \ - | tar c --mtime="$(GIT_DATE)" \ + | $(TAR) c --mtime="$(GIT_DATE)" \ --owner=root --group=root --numeric-owner \ --no-recursion --null -T - -f - \ | gzip -9n > "$(2)") @@ -61,7 +62,7 @@ endef $(OCTAVE_RELEASE): .git/index | $(BUILD_DIR) @echo "Creating package version $(VERSION) release ..." -$(RM) -r "$@" - git archive --format=tar --prefix="$@/" HEAD | tar -x + git archive --format=tar --prefix="$@/" HEAD | $(TAR) -x $(RM) "$@/README.matlab.md" \ "$@/HOWTO-release.md" \ "$@/TODO.md" \ From 91e9c88f274f56a4e59ee93ec845a26d474552df Mon Sep 17 00:00:00 2001 From: Swayam Shah Date: Sat, 30 Nov 2024 19:08:08 +0530 Subject: [PATCH 2/2] modified copyright header --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 02c8f0759..20f0df6d4 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ SHELL := /bin/bash ## Copyright 2016-2019, 2022 Colin B. Macdonald +## Copyright 2024 Swayam Shah ## ## Copying and distribution of this file, with or without modification, ## are permitted in any medium without royalty provided the copyright