Skip to content

Commit

Permalink
Fix tarball so it contains the distribution name (#11727)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcfarlen authored Aug 20, 2024
1 parent accb959 commit c237254
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -847,18 +847,18 @@ add_custom_target(
COMMENT "Create distribution tarball for ASF"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMAND rm -rf ${DISTTMP} && mkdir /tmp/asf-dist
COMMAND git archive --format=tar HEAD | tar -C ${DISTTMP} -xf -
COMMAND rm -rf ${DISTTMP}/ci
COMMAND grep -v img.shields.io ${DISTTMP}/README.md > ${DISTTMP}/README.md.clean
COMMAND mv ${DISTTMP}/README.md.clean ${DISTTMP}/README.md
COMMAND git archive --format=tar --prefix=${DISTFILENAME}/ HEAD | tar -C ${DISTTMP} -xf -
COMMAND rm -rf ${DISTTMP}/${DISTFILENAME}/ci
COMMAND grep -v img.shields.io ${DISTTMP}/${DISTFILENAME}/README.md > ${DISTTMP}/${DISTFILENAME}/README.md.clean
COMMAND mv ${DISTTMP}/${DISTFILENAME}/README.md.clean ${DISTTMP}/${DISTFILENAME}/README.md
)

add_custom_target(
asf-dist
COMMENT "Create distribution tarball for ASF release"
DEPENDS asf-distdir
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMAND tar -C ${DISTTMP} -c . | bzip2 -9 -c > ${DISTFILENAME}.tar.bz2
COMMAND tar -C ${DISTTMP} -c ${DISTFILENAME} | bzip2 -9 -c > ${DISTFILENAME}.tar.bz2
COMMAND rm -rf ${DISTTMP}
)

Expand All @@ -867,7 +867,7 @@ add_custom_target(
COMMENT "Create distribution tarball for ASF release candidate"
DEPENDS asf-distdir
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMAND tar -C ${DISTTMP} -c . | bzip2 -9 -c > ${DISTFILENAME}-rc$ENV{RC}.tar.bz2
COMMAND tar -C ${DISTTMP} -c ${DISTFILENAME} | bzip2 -9 -c > ${DISTFILENAME}-rc$ENV{RC}.tar.bz2
COMMAND rm -rf ${DISTTMP}
)

Expand Down

0 comments on commit c237254

Please sign in to comment.