~ubuntu-branches/ubuntu/vivid/soundscaperenderer/vivid

« back to all changes in this revision

Viewing changes to release.sh

  • Committer: Package Import Robot
  • Author(s): IOhannes m zmölnig (Debian/GNU)
  • Date: 2014-05-08 16:58:09 UTC
  • Revision ID: package-import@ubuntu.com-20140508165809-7tz9dhu5pvo5wy25
Tags: upstream-0.4.1~dfsg
Import upstream version 0.4.1~dfsg

Show diffs side-by-side

added added

removed removed

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