Add release maintainer script
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 23 Nov 2020 15:49:57 +0000 (10:49 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 23 Nov 2020 15:53:32 +0000 (10:53 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
scripts/maintainer/do-release.sh [new file with mode: 0755]

diff --git a/scripts/maintainer/do-release.sh b/scripts/maintainer/do-release.sh
new file mode 100755 (executable)
index 0000000..e0cec16
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+# invoke with do-release 2.N.M, or 2.N.M-rcXX
+
+REL=$1
+SRCDIR=~/git/lttng-modules
+# The output files are created in ${HOME}/stable/
+OUTPUTDIR=${HOME}/stable
+
+if [ x"$1" = x"" ]; then
+       echo "1 arg : VERSION";
+       exit 1;
+fi
+
+cd ${OUTPUTDIR}
+
+echo Doing LTTng modules release ${REL}
+
+mkdir lttng-modules-${REL}
+cd lttng-modules-${REL}
+cp -ax ${SRCDIR}/. .
+
+#cleanup
+make clean
+git clean -xdf
+
+for a in \*.orig \*.rej Module.markers Module.symvers; do
+       find . -name "${a}" -exec rm '{}' \;;
+done
+for a in outgoing .tmp_versions .git .pc; do
+       find . -name "${a}" -exec rm -rf '{}' \;;
+done
+
+cd ..
+tar cvfj lttng-modules-${REL}.tar.bz2 lttng-modules-${REL}
+mksums lttng-modules-${REL}.tar.bz2
+signpkg lttng-modules-${REL}.tar.bz2
This page took 0.034908 seconds and 4 git commands to generate.