chiark / gitweb /
run debian/rules patch
[inn-innduct.git] / support / mksnapshot
1 #! /bin/sh
2
3 ##  $Id: mksnapshot 7308 2005-06-11 08:39:54Z eagle $
4 ##
5 ##  Build a snapshot of the current tree.
6 ##
7 ##  Meant to be run on a fresh Subversion checkout, this script does the
8 ##  necessary work to generate a snapshot.  It expects to be invoked from the
9 ##  top level of the source tree and leaves the generated snapshot in that
10 ##  same directory as a .tar.gz file.
11 ##
12 ##  Snapshot generation will fail if the tree will not compile or if make test
13 ##  fails.  In either case, the output is left in snapshot.log.
14 ##
15 ##  This script takes one argument, a string representing what tree the
16 ##  snapshot is being taken from.  Generally this string is either CURRENT or
17 ##  STABLE.
18
19 set -e
20
21 date=`date -u +%Y%m%d`
22 tree="$1"
23 if [ -z "$tree" ] ; then
24     echo "$0: no tree name specified" >&2
25     exit 1
26 fi
27
28 exec > snapshot.log 2>&1
29
30 ./configure
31 make warnings
32 make test
33 make check-manifest
34
35 cat > README.snapshot <<EOF
36 This is a snapshot of the current development version of INN, pulled
37 automatically from the Subversion repository.  It was made on:
38
39     `date -u +"%B %e, %Y @ %I:%M %p %Z"`
40
41 This code should be considered experimental.  Only a default compile and
42 automated testing is done before it is made available.  If it breaks, we'd
43 like to know at inn-bugs@isc.org, but if it causes your system to explode,
44 don't blame us.
45
46 If you are using this code, it's highly recommended that you be on the
47 inn-workers@isc.org mailing list.  See README for more information.
48 EOF
49
50 make snapshot SNAPSHOT="$tree" SNAPDATE="$date"