3
# This script automates the necessary steps for releasing the SSR.
7
# show message; run command; if unsuccessful, show error message and exit
8
echo $0: Running \"$@\" ...
9
"$@" || { status=$?; echo $0: Error in \"$@\"!; exit $status; }
12
# change to the directory where the script is located
13
# (in case it was started from somewhere else)
16
if [ "$(git symbolic-ref --short HEAD)" != master ]
18
echo \"$0\" should be called on the master branch!; exit 42;
21
# first of all, make "tabula rasa"
22
run_command ./cleanse.sh
24
# prepare the build system
25
run_command ./autogen.sh
27
# create the user manual
28
(cd doc/manual && run_command latexmk) || exit
31
run_command ./configure
33
# enable parallel make if CONCURRENCY_LEVEL is defined
34
if test ! -z $CONCURRENCY_LEVEL; then
35
MAKE_OPTIONS=-j$CONCURRENCY_LEVEL
38
# create tarball and run some basic tests
39
run_command make distcheck $MAKE_OPTIONS
43
# Settings for Vim (http://www.vim.org/), please do not remove:
44
# vim:softtabstop=2:shiftwidth=2:expandtab:textwidth=80