X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=tools%2Frelease.sh;h=ac8af646e86562d6942c6731582c48238c7b4fe6;hb=3e84da55a64fbfb025c104d0968e2cb84de80a53;hp=e7fbc6ce10953cfea0b45d98be8c7df3fe7f0fe4;hpb=333601da4bbe2bf39ccc21ddc5160344ca953678;p=openocd.git diff --git a/tools/release.sh b/tools/release.sh index e7fbc6ce10..ac8af646e8 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -37,7 +37,6 @@ Build Commands: build Compiles the project; runs configure, if needed. Packaging Commands: - changelog Generate a new ChangeLog using ${SCM}2cl. package Produce new distributable source archives. stage Move archives to staging area for upload. @@ -83,17 +82,8 @@ do_build() { maybe_build() { [ -f "src/openocd" ] || do_build; } do_build_clean() { [ -f Makefile ] && make maintainer-clean >/dev/null; } -do_changelog() { - echo "Creating ChangeLog..." - local CMD=tools/git2cl/git2cl - eval ${CMD} ${OPTS} > ChangeLog -} -do_changelog_clean() { - git checkout ChangeLog -} do_package() { - do_changelog maybe_build echo "Building distribution packages..." make ${MAKE_OPTS} distcheck 2>&1 | perl tools/logger.pl > "release-pkg.log" @@ -112,7 +102,7 @@ do_stage() { for EXT in tar.gz tar.bz2 zip; do local FILE="${PACKAGE_RELEASE}.${EXT}" # create archive signatures - for HASH in md5 sha1; do + for HASH in sha256; do echo "sign: ${FILE}.${HASH}" ${HASH}sum "${FILE}" > "archives/${FILE}.${HASH}" done @@ -120,14 +110,12 @@ do_stage() { mv -v "${FILE}" archives/ done cp -a NEWS archives/ - cp -a ChangeLog archives/ } do_stage_clean() { rm -v -f -r archives; } do_clean() { do_build_clean do_package_clean - do_changelog_clean rm -v -f release-*.log } do_clean_all() { @@ -137,8 +125,8 @@ do_clean_all() { do_version_commit() { [ "$*" ] || die "usage: $0 commit " - git add configure.in || die "error: no version changes to commit" - git commit -q -m "$*" configure.in + git add configure.ac || die "error: no version changes to commit" + git commit -q -m "$*" configure.ac } do_version_finalize() { @@ -195,12 +183,13 @@ do_release_step_news() { git mv "NEWS" "NEWS-${RELEASE_VERSION}" cat >NEWS <). +see the git repository history. With gitweb, you can browse that +in various levels of detail. + +For older NEWS, see the NEWS files associated with each release +(i.e. NEWS-). For more information about contributing test reports, bug fixes, or new features and device support, please read the new Developer Manual (or -the BUGS and PATCHES files in the source archive). +the BUGS and PATCHES.txt files in the source archive). NEWS git add NEWS @@ -289,7 +281,7 @@ do_reset() { maybe_bootstrap maybe_configure do_clean_all - git checkout configure.in + git checkout configure.ac } LONGOPTS="fast,final,start-rc,next-tag:,next:,help" @@ -353,9 +345,9 @@ CMD=$1 [ "${CMD}" ] || usage shift -ACTION_CMDS="bootstrap|configure|build|changelog|package|stage|clean" +ACTION_CMDS="bootstrap|configure|build|package|stage|clean" MISC_CMDS="all|info|release|branch|reset|help|usage" -CLEAN_CMDS="build_clean|changelog_clean|package_clean|stage_clean|clean_all" +CLEAN_CMDS="build_clean|package_clean|stage_clean|clean_all" CMDS="|${ACTION_CMDS}|${CLEAN_CMDS}|${MISC_CMDS}|" is_command() { echo "${CMDS}" | grep "|$1|" >/dev/null; }