source: rtems/scripts/mkbinutilspec @ c5b8d6d

4.104.114.84.95
Last change on this file since c5b8d6d was c5b8d6d, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 18, 1999 at 9:40:05 PM

Making sparc-rtems rpms available.

  • Property mode set to 100644
File size: 769 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}/$target_alias-binutils.spec.
Note: See TracBrowser for help on using the repository browser.