source: rtems/scripts/mkbinutilspec @ 8c5e54b

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
6RTEMS_DIR=`dirname $0`
7RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \
8sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
9
10target_alias=$1
11release=0
12
13# Some linux distributions use /usr/src/packages
14# redhat uses /usr/src/redhat
15# others might use /usr/src
16if test -d /usr/src/packages/SPECS;
17then
18dst=/usr/src/packages/SPECS;
19elif test -d /usr/src/redhat/SPECS;
20 then
21dst=/usr/src/redhat/SPECS;
22elif test -d /usr/src/SPECS/;
23then
24dst=/usr/src/SPECS;
25fi
26
27sed -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
34echo Generated ${dst}/rtems-$target_alias-binutils.spec.
Note: See TracBrowser for help on using the repository browser.