From b5cdc295b447675071bec78206a2fd75ed2b81bc Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 24 Jan 2024 22:06:59 -1000 Subject: [PATCH] ;just: find GNU tar more portably --- Justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 5adf1c455..72fde457d 100644 --- a/Justfile +++ b/Justfile @@ -532,7 +532,7 @@ samplejournals: tools/generatejournal.hs 100000 1000 10 > examples/100000x1000x10.journal tools/generatejournal.hs 1000000 1000 10 > examples/1000000x1000x10.journal -GNUTAR := 'gtar' +GNUTAR := `which gtar >/dev/null && echo gtar || echo tar` # The current OS name, in the form used for hledger release binaries: linux, mac, windows or other. OS := `ghc -e 'import System.Info' -e 'putStrLn $ case os of "darwin"->"mac"; "mingw32"->"windows"; "linux"->"linux"; _->"other"'`