4.104.114.84.95
Last change
on this file since 67113c7 was
06e70cd,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/07/03 at 08:53:29
|
2003-10-07 Ralf Corsepius <corsepiu@…>
- cpukit/target-cpukit.add: New.
- cpukit/Makefile.am: Reflect having added target-cpukit.add.
Acknowledge osversion.
- cpukit/mkspec.in: Acknowledge osversion and rpmgroup.
- cpukit/rtems-cpukit.add: Reflect new RTEMS spec conventions.
|
-
Property mode set to
100644
|
File size:
910 bytes
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | RTEMS_DIR=`dirname $0`/@top_srcdir@ |
---|
4 | RTEMS_VERSION=@VERSION@ |
---|
5 | RPM_VERSION=`echo ${RTEMS_VERSION} | tr - _` |
---|
6 | |
---|
7 | CFG=../setup.cache |
---|
8 | dst=@RPM_SPECSdir@ |
---|
9 | |
---|
10 | usage() |
---|
11 | { |
---|
12 | echo "$0 [options] <target_alias>" |
---|
13 | echo " options:" |
---|
14 | echo " -cfg <setup.cache>" |
---|
15 | echo " -o <rpm-spec-dir>" |
---|
16 | exit 1 ; |
---|
17 | } |
---|
18 | |
---|
19 | while test $# -ge 3; do |
---|
20 | case $1 in |
---|
21 | -cfg) |
---|
22 | shift |
---|
23 | CFG=$1 |
---|
24 | shift |
---|
25 | ;; |
---|
26 | -o) |
---|
27 | shift |
---|
28 | dst=$1 |
---|
29 | shift |
---|
30 | ;; |
---|
31 | -*) |
---|
32 | echo "invalid option $1"; |
---|
33 | usage |
---|
34 | ;; |
---|
35 | esac |
---|
36 | done |
---|
37 | |
---|
38 | if test ! $# -eq 1; |
---|
39 | then |
---|
40 | echo "Invalid number of arguments" >&2 |
---|
41 | usage >&2 |
---|
42 | fi |
---|
43 | |
---|
44 | # target to build for |
---|
45 | target_alias=$1 |
---|
46 | |
---|
47 | . ./$CFG |
---|
48 | |
---|
49 | sed -e "s%@Release\@%${rtems_rpm_release}%g" \ |
---|
50 | -e "s%@rtems_version\@%${RTEMS_VERSION}%g" \ |
---|
51 | -e "s%@rpmgroup\@%@rpmgroup@%g" \ |
---|
52 | -e "s%@osversion\@%@osversion@%g" \ |
---|
53 | -e "s,@rpm_build_root\@,${rpm_build_root},g" \ |
---|
54 | -e "s%@target_alias\@%${target_alias}%g" \ |
---|
55 | < ${RTEMS_DIR}/cpukit/rtems-cpukit.spec.in |
---|
Note: See
TracBrowser
for help on using the repository browser.