summaryrefslogtreecommitdiffstats
diff options
authorMark Wielaard <mark@klomp.org>2021-05-06 00:00:56 +0200
committerMark Wielaard <mark@klomp.org>2021-05-06 00:00:56 +0200
commit8f34e39bbf6d0a348a147d4d30b6527019945d26 (patch)
tree8b9f1d744e9080a897669088365045dbd4d3f698
parentMakefile.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.ac2
-rwxr-xr-xupload-release.sh64
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
19AC_PREREQ([2.69]) 19AC_PREREQ([2.69])
20AC_INIT([debugedit], [0.1], [debugedit@sourceware.org]) 20AC_INIT([debugedit], [0.2], [debugedit@sourceware.org])
21AC_CONFIG_SRCDIR([tools/debugedit.c]) 21AC_CONFIG_SRCDIR([tools/debugedit.c])
22AC_CONFIG_HEADERS([config.h]) 22AC_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
9set -e
10
11# We take one arguent, the version (e.g. 0.2)
12if [ $# -ne 1 ]; then
13 echo "$0 <version> (e.g. 0.2)"
14 exit 1
15fi
16
17VERSION="$1"
18
19echo Make sure the git repo is tagged, signed and pushed
20echo git tag -s -m \"debugedit $VERSION release\" debugedit-$VERSION
21echo git push --tags
22
23# Create a temporary directory and make sure it is cleaned up.
24tempdir=$(mktemp -d) || exit
25trap "rm -rf -- ${tempdir}" EXIT
26
27pushd "${tempdir}"
28
29# Checkout
30git clone git://sourceware.org/git/debugedit.git
31cd debugedit
32git tag --verify "debugedit-${VERSION}"
33git checkout -b "$VERSION" "debugedit-${VERSION}"
34
35# Create dist
36autoreconf -v -f -i
37./configure
38make -j$(nproc) && make distcheck
39
40# Sign
41mkdir $VERSION
42cp debugedit-$VERSION.tar.bz2 $VERSION/
43cd $VERSION/
44gpg -b debugedit-$VERSION.tar.bz2
45cd ..
46
47# Backup copy
48cp -r $VERSION $HOME/debugedit-$VERSION
49
50# Upload
51scp -r $VERSION sourceware.org:/sourceware/ftp/pub/debugedit/
52ssh 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
62popd
63trap - EXIT
64exit