4.104.114.84.95
Last change
on this file since 7eb4d4b0 was
332fd2a,
checked in by Chris Johns <chrisj@…>, on 07/22/06 at 07:23:51
|
Changes to the installer and an extra script to build all.
|
-
Property mode set to
100755
|
File size:
1.1 KB
|
Line | |
---|
1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | # RTEMS Build script. |
---|
5 | # |
---|
6 | # This script builds the RPM files then the Windows executables. |
---|
7 | # |
---|
8 | # Note: This file should be placed in crossrpms. |
---|
9 | # |
---|
10 | |
---|
11 | terminate() |
---|
12 | { |
---|
13 | echo "error: $*" >&2 |
---|
14 | exit 1 |
---|
15 | } |
---|
16 | |
---|
17 | check() |
---|
18 | { |
---|
19 | if [ $? -ne 0 ]; then |
---|
20 | terminate |
---|
21 | fi |
---|
22 | } |
---|
23 | |
---|
24 | debug= |
---|
25 | hosts= |
---|
26 | prefix= |
---|
27 | no_run= |
---|
28 | relocate= |
---|
29 | source= |
---|
30 | targets= |
---|
31 | version= |
---|
32 | log=build.txt |
---|
33 | |
---|
34 | while [ $# -gt 0 ]; |
---|
35 | do |
---|
36 | case $1 in |
---|
37 | -d) |
---|
38 | set -x |
---|
39 | debug="-d" |
---|
40 | ;; |
---|
41 | -h) |
---|
42 | shift |
---|
43 | hosts="-h $1" |
---|
44 | ;; |
---|
45 | -l) |
---|
46 | shift |
---|
47 | log=$1 |
---|
48 | ;; |
---|
49 | -n) |
---|
50 | no_run="-n" |
---|
51 | ;; |
---|
52 | -p) |
---|
53 | shift |
---|
54 | prefix="-p $1" |
---|
55 | ;; |
---|
56 | -r) |
---|
57 | shift |
---|
58 | relocation="-r $1" |
---|
59 | ;; |
---|
60 | -s) |
---|
61 | shift |
---|
62 | source="-s $1" |
---|
63 | ;; |
---|
64 | -t) |
---|
65 | shift |
---|
66 | targets="-t $1" |
---|
67 | ;; |
---|
68 | -v) |
---|
69 | shift |
---|
70 | version="-v $1" |
---|
71 | ;; |
---|
72 | --help) |
---|
73 | echo "$0 -dn -h <hosts> -p <prefix> -s <source> -t <targets> -v <version>" |
---|
74 | exit 2 |
---|
75 | ;; |
---|
76 | *) |
---|
77 | terminate "error: invalid option (try --help): $1" |
---|
78 | ;; |
---|
79 | esac |
---|
80 | shift |
---|
81 | done |
---|
82 | |
---|
83 | scripts=$(dirname $0) |
---|
84 | |
---|
85 | $scripts/build-rpms.sh -i $debug $no_run $prefix $source $targets $hosts $version 2>&1 | tee $log |
---|
86 | check "Making the RPM files." |
---|
87 | |
---|
88 | $scripts/build-exes.sh $debug $no_run $prefix $targets $relocation 2>&1 | tee -a $log |
---|
89 | check "Making the executable files." |
---|
90 | |
---|
Note: See
TracBrowser
for help on using the repository browser.