maint: add dependency warning when building a tagged release
[barry.git] / maintainer / tagged-release.sh
blob9c7201ae5675acbf881dc56f3cbc30cc76706a24
1 #!/bin/sh
3 if [ -z "$1" -o -z "$2" ] ; then
4 echo
5 echo "Usage: (from inside root of git repo)"
6 echo " maintainer/tagged-release.sh MAJOR MINOR"
7 echo
8 echo "Creates the release tarball from git sources, tests the compile"
9 echo "on local machine, and available chroots."
10 echo
11 echo "See the help on git-tagged-release.sh for more detailed info."
12 echo
13 echo "Note: You may wish to direct the output to a file, for"
14 echo " later examination."
15 echo
16 exit 1
19 set -e
21 echo "WARNING: make sure you have the appropriate libopensync0-dev"
22 echo " installed on the local system, for the local deb build."
23 read
25 # Create the tarball
26 maintainer/git-tagged-release.sh $1 $2
28 # Checkout the tag we're building with
29 git checkout barry-$1.$2
31 cd maintainer
33 # Build as root first, so all prompts are finished at the start,
34 # for the chroot systems...
35 su - -c "cd $(pwd) && ./release-root.sh $1 $2"
37 # Build Debian packages in /usr/src/barry-version
38 ./make-deb-local.sh build/barry-$1.$2.tar.bz2 $1 $2 debian