4.104.114.84.95
Last change
on this file since 8c5e54b was
8c5e54b,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/18/99 at 19:10:03
|
Working on being able to cut RPMs. It now appears that the process
is working mostly for sparc at least.
There is one major problem -- the current process generates a unique
source file per RPM when in fact all of the source files are nearly
the same -- it is only the spec part of the rpm which differs.
The new file mkbinutils_subpackage_version is an attempt to
address this. It does part of the job right -- one source file
produces multiple binary RPMs. BUT the end user can not produce
the resulting RPMS themselves from SRPMS unless they also
build all targets.
|
-
Property mode set to
100644
|
File size:
775 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # Usage: mktoolspec CPU |
---|
4 | # |
---|
5 | |
---|
6 | RTEMS_DIR=`dirname $0` |
---|
7 | RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \ |
---|
8 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
9 | |
---|
10 | target_alias=$1 |
---|
11 | release=0 |
---|
12 | |
---|
13 | # Some linux distributions use /usr/src/packages |
---|
14 | # redhat uses /usr/src/redhat |
---|
15 | # others might use /usr/src |
---|
16 | if test -d /usr/src/packages/SPECS; |
---|
17 | then |
---|
18 | dst=/usr/src/packages/SPECS; |
---|
19 | elif test -d /usr/src/redhat/SPECS; |
---|
20 | then |
---|
21 | dst=/usr/src/redhat/SPECS; |
---|
22 | elif test -d /usr/src/SPECS/; |
---|
23 | then |
---|
24 | dst=/usr/src/SPECS; |
---|
25 | fi |
---|
26 | |
---|
27 | sed -e "s%@Version@%${RTEMS_VERSION}%g" \ |
---|
28 | -e "s%@bsp@%${bsp}%g" \ |
---|
29 | -e "s%@Release@%${release}%g" \ |
---|
30 | -e "s%@target_alias@%${target_alias}%g" \ |
---|
31 | < ${RTEMS_DIR}/binutils.spec.in \ |
---|
32 | > ${dst}/$target_alias-binutils.spec |
---|
33 | |
---|
34 | echo Generated ${dst}/rtems-$target_alias-binutils.spec. |
---|
Note: See
TracBrowser
for help on using the repository browser.