mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-05-22 02:27:45 +00:00
scripts: update mk-release to cope with the new autoconf framework
Now that ./configure is generated by autoconf, it must be generated before the release tarball is made. So, we can not simply use hg's archive, we must post-process it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
7bcabe3ae1
commit
7553cf86a9
@ -327,9 +327,17 @@ popd >/dev/null 2>&1
|
||||
|
||||
printf "Creating tarball:"
|
||||
prefix="crosstool-ng-${version}"
|
||||
printf " archive"
|
||||
_hg archive --cwd "${repos}" -r "${prefix}" -X '.hg*' "$(pwd)/${prefix}.tar.bz2"
|
||||
printf " extract"
|
||||
date="$( _hg log -R "${repos}" -r "${prefix}" --template '{date|rfc822date}\n' )"
|
||||
tmpdir="$( mktemp -d --tmpdir XXXXXX )"
|
||||
_hg archive --cwd "${repos}" -r "${prefix}" -X '.hg*' --type files "${tmpdir}/${prefix}"
|
||||
printf ", bootstrap"
|
||||
pushd "${tmpdir}/${prefix}" >/dev/null 2>&1
|
||||
./bootstrap >/dev/null
|
||||
popd >/dev/null 2>&1
|
||||
printf ", tarball"
|
||||
tar cjf "$(pwd)/${prefix}.tar.bz2" -C "${tmpdir}" "$prefix}"
|
||||
rm -rf "${tmpdir}"
|
||||
printf ", sum"
|
||||
for s in md5 sha1 sha512; do
|
||||
${s}sum "${prefix}.tar.bz2" >"${prefix}.tar.bz2.${s}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user