1 | #!/bin/sh |
---|
2 | |
---|
3 | #~ Copyright Rene Rivera 2006. |
---|
4 | #~ Distributed under the Boost Software License, Version 1.0. |
---|
5 | #~ (See accompanying file LICENSE_1_0.txt or copy at |
---|
6 | #~ http://www.boost.org/LICENSE_1_0.txt) |
---|
7 | |
---|
8 | set -e |
---|
9 | |
---|
10 | #~ Configuration options. |
---|
11 | mail_from="Rene Rivera <grafikrobot@gmail.com>" |
---|
12 | mail_to="Boost <boost@lists.boost.org>" |
---|
13 | mail_date=`date --iso-8601 --utc` |
---|
14 | mail_in_reply_to="$2" |
---|
15 | cvs_branch="$1" |
---|
16 | cvs_user=":ext:${USER}" |
---|
17 | cvs_co="cvs -q -z9 -d${cvs_user}@boost.cvs.sourceforge.net:/cvsroot/boost co -P -r ${cvs_branch}" |
---|
18 | cvs_dir="${HOME}/devroots" |
---|
19 | |
---|
20 | #~ Build bjam. |
---|
21 | cd ${cvs_dir} |
---|
22 | ${cvs_co} -d boost_jam_src boost/tools/jam/src |
---|
23 | cd boost_jam_src |
---|
24 | LOCATE_TARGET=bin sh ./build.sh |
---|
25 | |
---|
26 | #~ Build inspect. |
---|
27 | cd ${cvs_dir} |
---|
28 | ${cvs_co} -d boost_${cvs_branch} boost |
---|
29 | cd boost_${cvs_branch}/tools/inspect/build |
---|
30 | ${cvs_dir}/boost_jam_src/bin/bjam --v2 |
---|
31 | |
---|
32 | #~ Run the inspection. |
---|
33 | cd ${cvs_dir} |
---|
34 | cd boost_${cvs_branch} |
---|
35 | opt="" |
---|
36 | opt="${opt} -crlf" |
---|
37 | opt="${opt} -link" |
---|
38 | opt="${opt} -long_name" |
---|
39 | opt="${opt} -tab" |
---|
40 | opt="${opt} -minmax" |
---|
41 | opt="${opt} -unnamed" |
---|
42 | ./dist/bin/inspect -text ${opt} > inspect-X.out |
---|
43 | opt="" |
---|
44 | opt="${opt} -license" |
---|
45 | opt="${opt} -copyright" |
---|
46 | ./dist/bin/inspect -text -brief ${opt} > inspect-LC.out |
---|
47 | |
---|
48 | #~ Send email(s) with results. |
---|
49 | /usr/sbin/sendmail "${mail_to}" <<EMAIL |
---|
50 | From: ${mail_from} |
---|
51 | To: ${mail_to} |
---|
52 | Reply-To: ${mail_to} |
---|
53 | References: ${mail_in_reply_to} |
---|
54 | In-Reply-To: ${mail_in_reply_to} |
---|
55 | Subject: Boost inspection notification (${mail_date}/${cvs_branch}) *X* |
---|
56 | |
---|
57 | `cat inspect-X.out` |
---|
58 | EMAIL |
---|
59 | /usr/sbin/sendmail "${mail_to}" <<EMAIL |
---|
60 | From: ${mail_from} |
---|
61 | To: ${mail_to} |
---|
62 | Reply-To: ${mail_to} |
---|
63 | References: ${mail_in_reply_to} |
---|
64 | In-Reply-To: ${mail_in_reply_to} |
---|
65 | Subject: Boost inspection notification (${mail_date}/${cvs_branch}) *LC* |
---|
66 | |
---|
67 | `cat inspect-LC.out` |
---|
68 | EMAIL |
---|