source: rtems/scripts/mkbinutilspec @ 1410dc36

4.104.114.84.95
Last change on this file since 1410dc36 was 7815d96, checked in by Joel Sherrill <joel.sherrill@…>, on 10/19/99 at 22:27:13

Left to build overnight.

  • Property mode set to 100644
File size: 856 bytes
Line 
1#!/bin/sh
2#
3#  Usage: mktoolspec CPU
4#
5
6RTEMS_DIR=`dirname $0`
7
8target_alias=$1
9
10# RPM release number
11rpm_release=0
12
13# binutils version number
14binutils_version=990901
15binutils_patch_version=19991015
16
17# Some linux distributions use /usr/src/packages
18# redhat uses /usr/src/redhat
19# others might use /usr/src
20if test -d /usr/src/packages/SPECS;
21then
22dst=/usr/src/packages/SPECS;
23elif test -d /usr/src/redhat/SPECS;
24 then
25dst=/usr/src/redhat/SPECS;
26elif test -d /usr/src/SPECS/;
27then
28dst=/usr/src/SPECS;
29fi
30
31specfile=${dst}/$target_alias-binutils-${binutils_version}.spec
32
33sed -e "s%@Release@%${rpm_release}%g" \
34    -e "s%@target_alias@%${target_alias}%g" \
35    -e "s%@binutils_version@%${binutils_version}%g" \
36    -e "s%@binutils_patch_version@%${binutils_patch_version}%g" \
37< ${RTEMS_DIR}/binutils.spec.in \
38> ${specfile}
39
40echo Generated ${specfile}.
Note: See TracBrowser for help on using the repository browser.