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