4.104.115
Last change
on this file since 3fe45104 was
56f6b907,
checked in by Chris Johns <chrisj@…>, on 08/04/07 at 06:24:12
|
2007-08-03 Chris Johns <chisj@…>
- rtems_logo.bmp: Clipped to get the correct proportions
in the installer's header.
- upload.sh: Install only the specific build installers.
- rtems.ini: Change to show the actual web paths.
- build-exes.sh, msys-path.nsi, rtems-autotools.nsi,
rtems-tools.nsi: Fixed MSYS path detection. Fixed the uninstaller
registry data. Changed the way the top level is generated. Now all
the sections are added no matter what target is specified.
|
-
Property mode set to
100755
|
File size:
1.7 KB
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | # $Id$ |
---|
4 | # |
---|
5 | # RTEMS Installers and Source Upload script. |
---|
6 | # |
---|
7 | # This script copies the executable and source to the RTEMS FTP server. It is for |
---|
8 | # use on the RTEMS build server. |
---|
9 | # |
---|
10 | |
---|
11 | echo $0 $* |
---|
12 | |
---|
13 | source=$(dirname $0) |
---|
14 | top=$(pwd) |
---|
15 | |
---|
16 | terminate() |
---|
17 | { |
---|
18 | echo "error: $*" >&2 |
---|
19 | exit 1 |
---|
20 | } |
---|
21 | |
---|
22 | check() |
---|
23 | { |
---|
24 | if [ $? -ne 0 ]; then |
---|
25 | terminate |
---|
26 | fi |
---|
27 | } |
---|
28 | |
---|
29 | . $source/version |
---|
30 | |
---|
31 | ftpbase=none |
---|
32 | prefix=none |
---|
33 | |
---|
34 | while [ $# -gt 0 ]; |
---|
35 | do |
---|
36 | case $1 in |
---|
37 | -b) |
---|
38 | shift |
---|
39 | tool_build=$1 |
---|
40 | ;; |
---|
41 | -d) |
---|
42 | set -x |
---|
43 | ;; |
---|
44 | -f) |
---|
45 | shift |
---|
46 | ftpbase=$1 |
---|
47 | ;; |
---|
48 | -p) |
---|
49 | shift |
---|
50 | prefix=$1 |
---|
51 | ;; |
---|
52 | -v) |
---|
53 | shift |
---|
54 | version=$1 |
---|
55 | ;; |
---|
56 | --help) |
---|
57 | echo "$0 -d -b <build> -f <ftpbase> -p <prefix> -v <version>" |
---|
58 | exit 2 |
---|
59 | ;; |
---|
60 | *) |
---|
61 | terminate "error: invalid option (try --help): $1" |
---|
62 | ;; |
---|
63 | esac |
---|
64 | shift |
---|
65 | done |
---|
66 | |
---|
67 | if [ $ftpbase = none ]; then |
---|
68 | terminate "no ftpbase set" |
---|
69 | fi |
---|
70 | |
---|
71 | if [ $prefix = none ]; then |
---|
72 | terminate "no prefix set" |
---|
73 | fi |
---|
74 | |
---|
75 | exebase=${prefix}/${version}/packages/mingw32/exe |
---|
76 | srcbase=${prefix}/${version}/packages/mingw32/SRPMS |
---|
77 | |
---|
78 | mkdir -p ${ftpbase}/${version}/build-${tool_build}/source |
---|
79 | check "creating: ${ftpbase}/${version}/build-${tool_build}/source" |
---|
80 | |
---|
81 | exes=$(find $exebase -name \*-${tool_build}.exe) |
---|
82 | for e in $exes |
---|
83 | do |
---|
84 | echo "cp $e ${ftpbase}/${version}/build-${tool_build}/." |
---|
85 | cp $e ${ftpbase}/${version}/build-${tool_build}/. |
---|
86 | check "coping installer: $e" |
---|
87 | done |
---|
88 | |
---|
89 | cd ${ftpbase}/${version}/build-${tool_build}/source |
---|
90 | check "change directory: ${ftpbase}/${version}/build-${tool_build}/source" |
---|
91 | |
---|
92 | for s in ${srcbase}/*.rpm |
---|
93 | do |
---|
94 | echo "rpm2cpio $s | cpio --extract --quiet" |
---|
95 | rpm2cpio $s | cpio --extract --quiet |
---|
96 | check "RPM to CPIO and CPIO Copy-In failed" |
---|
97 | done |
---|
98 | |
---|
99 | rm -f *.spec |
---|
100 | check "deleting spec files" |
---|
101 | |
---|
102 | cd $top |
---|
103 | |
---|
104 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.