3 ## $Id: mksnapshot 7308 2005-06-11 08:39:54Z eagle $
5 ## Build a snapshot of the current tree.
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.
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.
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
21 date=`date -u +%Y%m%d`
23 if [ -z "$tree" ] ; then
24 echo "$0: no tree name specified" >&2
28 exec > snapshot.log 2>&1
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:
39 `date -u +"%B %e, %Y @ %I:%M %p %Z"`
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,
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.
50 make snapshot SNAPSHOT="$tree" SNAPDATE="$date"