diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2012-01-29 22:19:27 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2012-01-29 22:19:27 +0100 |
commit | 7553cf86a93d94d9d3ead72fdf61a971b812b85c (patch) | |
tree | 6aef1bc2f3a7f48561ba9f8be6f4ff2c0864c5fe | |
parent | 7bcabe3ae17a5566061aed540c2ffca19aa3d84b (diff) | |
download | crosstool-ng-7553cf86a93d94d9d3ead72fdf61a971b812b85c.tar.gz crosstool-ng-7553cf86a93d94d9d3ead72fdf61a971b812b85c.tar.bz2 crosstool-ng-7553cf86a93d94d9d3ead72fdf61a971b812b85c.zip |
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>
-rwxr-xr-x | scripts/mk-release.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/mk-release.sh b/scripts/mk-release.sh index 6e71fdb8..8498f72b 100755 --- a/scripts/mk-release.sh +++ b/scripts/mk-release.sh @@ -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}" |