source: rtems/scripts/mkgdbspec @ 7815d96

4.104.114.84.95
Last change on this file since 7815d96 was 7815d96, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 19, 1999 at 10:27:13 PM

Left to build overnight.

  • Property mode set to 100644
File size: 1.0 KB
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# gdb version number
14gdb_version=4.18
15gdb_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-gdb-${gdb_version}.spec
32
33sed -e "s%@Release@%${rpm_release}%g" \
34    -e "s%@target_alias@%${target_alias}%g" \
35    -e "s%@gdb_version@%${gdb_version}%g" \
36    -e "s%@gdb_patch_version@%${gdb_patch_version}%g" \
37< ${RTEMS_DIR}/gdb.spec.in \
38> ${specfile}
39
40case ${target} in
41  powerpc*)
42     echo "/opt/rtems/bin/@target_alias@-run" 
43     ;;
44  sparc*)
45     echo "/opt/rtems/bin/@target_alias@-run" 
46     echo "/opt/rtems/bin/@target_alias@-sis" 
47     ;;
48  *) ;;
49esac >> ${specfile}
50
51echo Generated ${specfile}.
Note: See TracBrowser for help on using the repository browser.