diff options
| author | Mark Wielaard <mark@klomp.org> | 2021-05-06 00:00:56 +0200 |
|---|---|---|
| committer | Mark Wielaard <mark@klomp.org> | 2021-05-06 00:00:56 +0200 |
| commit | 8f34e39bbf6d0a348a147d4d30b6527019945d26 (patch) | |
| tree | 8b9f1d744e9080a897669088365045dbd4d3f698 | |
| parent | Makefile.am: Don't try to recursively make binaries to run help2man (diff) | |
Set version to 0.2 and add upload-release.sh script.debugedit-0.2
Another pre-release. Now with the new documentation and an uploade-release.sh script. Signed-off-by: Mark Wielaard <mark@klomp.org>
| -rw-r--r-- | configure.ac | 2 | ||||
| -rwxr-xr-x | upload-release.sh | 64 |
2 files changed, 65 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9e8b0ec..d11467e 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | 17 | # along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 18 | 18 | ||
| 19 | AC_PREREQ([2.69]) | 19 | AC_PREREQ([2.69]) |
| 20 | AC_INIT([debugedit], [0.1], [debugedit@sourceware.org]) | 20 | AC_INIT([debugedit], [0.2], [debugedit@sourceware.org]) |
| 21 | AC_CONFIG_SRCDIR([tools/debugedit.c]) | 21 | AC_CONFIG_SRCDIR([tools/debugedit.c]) |
| 22 | AC_CONFIG_HEADERS([config.h]) | 22 | AC_CONFIG_HEADERS([config.h]) |
| 23 | 23 | ||
diff --git a/upload-release.sh b/upload-release.sh new file mode 100755 index 0000000..6ae5ff8 --- /dev/null +++ b/upload-release.sh | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | #!/usr/bin/env bash | ||
| 2 | |||
| 3 | # Must be run in the source directory. | ||
| 4 | # Should have passed make distcheck. | ||
| 5 | # And all final changes should already have been pushed. | ||
| 6 | # Backup copy will be created in $HOME/debugedit-$VERSION | ||
| 7 | |||
| 8 | # Any error is fatal | ||
| 9 | set -e | ||
| 10 | |||
| 11 | # We take one arguent, the version (e.g. 0.2) | ||
| 12 | if [ $# -ne 1 ]; then | ||
| 13 | echo "$0 <version> (e.g. 0.2)" | ||
| 14 | exit 1 | ||
| 15 | fi | ||
| 16 | |||
| 17 | VERSION="$1" | ||
| 18 | |||
| 19 | echo Make sure the git repo is tagged, signed and pushed | ||
| 20 | echo git tag -s -m \"debugedit $VERSION release\" debugedit-$VERSION | ||
| 21 | echo git push --tags | ||
| 22 | |||
| 23 | # Create a temporary directory and make sure it is cleaned up. | ||
| 24 | tempdir=$(mktemp -d) || exit | ||
| 25 | trap "rm -rf -- ${tempdir}" EXIT | ||
| 26 | |||
| 27 | pushd "${tempdir}" | ||
| 28 | |||
| 29 | # Checkout | ||
| 30 | git clone git://sourceware.org/git/debugedit.git | ||
| 31 | cd debugedit | ||
| 32 | git tag --verify "debugedit-${VERSION}" | ||
| 33 | git checkout -b "$VERSION" "debugedit-${VERSION}" | ||
| 34 | |||
| 35 | # Create dist | ||
| 36 | autoreconf -v -f -i | ||
| 37 | ./configure | ||
| 38 | make -j$(nproc) && make distcheck | ||
| 39 | |||
| 40 | # Sign | ||
| 41 | mkdir $VERSION | ||
| 42 | cp debugedit-$VERSION.tar.bz2 $VERSION/ | ||
| 43 | cd $VERSION/ | ||
| 44 | gpg -b debugedit-$VERSION.tar.bz2 | ||
| 45 | cd .. | ||
| 46 | |||
| 47 | # Backup copy | ||
| 48 | cp -r $VERSION $HOME/debugedit-$VERSION | ||
| 49 | |||
| 50 | # Upload | ||
| 51 | scp -r $VERSION sourceware.org:/sourceware/ftp/pub/debugedit/ | ||
| 52 | ssh sourceware.org "(cd /sourceware/ftp/pub/debugedit \ | ||
| 53 | && chmod go+rx $VERSION \ | ||
| 54 | && chmod go+r $VERSION/debugedit-$VERSION.tar.bz2* \ | ||
| 55 | && ln -sf $VERSION/debugedit-$VERSION.tar.bz2 \ | ||
| 56 | debugedit-latest.tar.bz2 \ | ||
| 57 | && ln -sf $VERSION/debugedit-$VERSION.tar.bz2.sig \ | ||
| 58 | debugedit-latest.tar.bz2.sig \ | ||
| 59 | && ls -lah debugedit-latest*)" | ||
| 60 | |||
| 61 | # Cleanup | ||
| 62 | popd | ||
| 63 | trap - EXIT | ||
| 64 | exit | ||
