Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/inspect/run_inspect.sh @ 32

Last change on this file since 32 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 1.7 KB
Line 
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
8set -e
9
10#~ Configuration options.
11mail_from="Rene Rivera <grafikrobot@gmail.com>"
12mail_to="Boost <boost@lists.boost.org>"
13mail_date=`date --iso-8601 --utc`
14mail_in_reply_to="$2"
15cvs_branch="$1"
16cvs_user=":ext:${USER}"
17cvs_co="cvs -q -z9 -d${cvs_user}@boost.cvs.sourceforge.net:/cvsroot/boost co -P -r ${cvs_branch}"
18cvs_dir="${HOME}/devroots"
19
20#~ Build bjam.
21cd ${cvs_dir}
22${cvs_co} -d boost_jam_src boost/tools/jam/src
23cd boost_jam_src
24LOCATE_TARGET=bin sh ./build.sh
25
26#~ Build inspect.
27cd ${cvs_dir}
28${cvs_co} -d boost_${cvs_branch} boost
29cd boost_${cvs_branch}/tools/inspect/build
30${cvs_dir}/boost_jam_src/bin/bjam --v2
31
32#~ Run the inspection.
33cd ${cvs_dir}
34cd boost_${cvs_branch}
35opt=""
36opt="${opt} -crlf"
37opt="${opt} -link"
38opt="${opt} -long_name"
39opt="${opt} -tab"
40opt="${opt} -minmax"
41opt="${opt} -unnamed"
42./dist/bin/inspect -text ${opt} > inspect-X.out
43opt=""
44opt="${opt} -license"
45opt="${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
50From: ${mail_from}
51To: ${mail_to}
52Reply-To: ${mail_to}
53References: ${mail_in_reply_to}
54In-Reply-To: ${mail_in_reply_to}
55Subject: Boost inspection notification (${mail_date}/${cvs_branch}) *X*
56
57`cat inspect-X.out`
58EMAIL
59/usr/sbin/sendmail "${mail_to}" <<EMAIL
60From: ${mail_from}
61To: ${mail_to}
62Reply-To: ${mail_to}
63References: ${mail_in_reply_to}
64In-Reply-To: ${mail_in_reply_to}
65Subject: Boost inspection notification (${mail_date}/${cvs_branch}) *LC*
66
67`cat inspect-LC.out`
68EMAIL
Note: See TracBrowser for help on using the repository browser.