Skip to content

Commit fc08f62

Browse files
Release: Make tar invocations compatible with bsdtar
Bsdtar available on macOS is different from GNU tar - it doesn't accept `-a` option. Signed-off-by: Anton Kolesov <[email protected]>
1 parent b029543 commit fc08f62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

release.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ endef
159159
#
160160
# :param $1 - name of directory to tar. Directory must be in the $O.
161161
define create_tar
162-
cd $O && tar caf $1$(TAR_EXT) $1/
162+
cd $O && tar czf $1$(TAR_EXT) $1/
163163
endef
164164

165165
# Create windows tarball for release. Difference with standard `create_tar` is
@@ -169,7 +169,7 @@ endef
169169
# :param $1 - name of directory to tar. Directory must
170170
# be in the $O.
171171
define create_windows_tar
172-
cd $O && tar caf $1$(TAR_EXT) --hard-dereference $1/
172+
cd $O && tar czf $1$(TAR_EXT) --hard-dereference $1/
173173
endef
174174

175175
# :param $1 - name of directory to zip.
@@ -770,7 +770,7 @@ $O/.stamp_ide_linux_tar: \
770770
tar xf $O/$(JRE_TGZ_LINUX) -C $O/$(IDE_INSTALL_LINUX)/eclipse/jre \
771771
--strip-components=1
772772
cp -al $O/$(OOCD_DIR_LINUX)/* $O/$(IDE_INSTALL_LINUX)
773-
tar caf $O/$(IDE_TGZ_LINUX) -C $O $(IDE_INSTALL_LINUX)
773+
tar czf $O/$(IDE_TGZ_LINUX) -C $O $(IDE_INSTALL_LINUX)
774774
touch $@
775775
endif
776776

0 commit comments

Comments
 (0)