Add release maintainer script
[lttng-modules.git] / scripts / maintainer / do-release.sh
CommitLineData
df79c0a0
MD
1#!/bin/sh
2
3# invoke with do-release 2.N.M, or 2.N.M-rcXX
4
5REL=$1
6SRCDIR=~/git/lttng-modules
7# The output files are created in ${HOME}/stable/
8OUTPUTDIR=${HOME}/stable
9
10if [ x"$1" = x"" ]; then
11 echo "1 arg : VERSION";
12 exit 1;
13fi
14
15cd ${OUTPUTDIR}
16
17echo Doing LTTng modules release ${REL}
18
19mkdir lttng-modules-${REL}
20cd lttng-modules-${REL}
21cp -ax ${SRCDIR}/. .
22
23#cleanup
24make clean
25git clean -xdf
26
27for a in \*.orig \*.rej Module.markers Module.symvers; do
28 find . -name "${a}" -exec rm '{}' \;;
29done
30for a in outgoing .tmp_versions .git .pc; do
31 find . -name "${a}" -exec rm -rf '{}' \;;
32done
33
34cd ..
35tar cvfj lttng-modules-${REL}.tar.bz2 lttng-modules-${REL}
36mksums lttng-modules-${REL}.tar.bz2
37signpkg lttng-modules-${REL}.tar.bz2
This page took 0.023758 seconds and 4 git commands to generate.