source: rtems/scripts/mkgdbspec @ c5b8d6d

4.104.114.84.95
Last change on this file since c5b8d6d was c5b8d6d, checked in by Joel Sherrill <joel.sherrill@…>, on 10/18/99 at 21:40:05

Making sparc-rtems rpms available.

  • Property mode set to 100644
File size: 998 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}/gdb.spec.in \
32> ${dst}/$target_alias-gdb.spec
33
34case ${target} in
35  powerpc*)
36     echo "/opt/rtems/bin/@target_alias@-run"
37     ;;
38  sparc*)
39     echo "/opt/rtems/bin/@target_alias@-run"
40     echo "/opt/rtems/bin/@target_alias@-sis"
41     ;;
42  *) ;;
43esac >> ${dst}/$target_alias-gdb.spec
44
45echo Generated ${dst}/$target_alias-gdb.spec.
Note: See TracBrowser for help on using the repository browser.