source: rtems/scripts/gdb/mkspec.in @ 9308d7b

4.104.114.84.9
Last change on this file since 9308d7b was 9308d7b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 14, 2005 at 10:42:45 AM

2005-04-14 Ralf Corsepius <ralf.corsepius@…>

  • gdb/mkspec.in: Remove extra_configure_arguments (Unused).
  • Property mode set to 100644
File size: 1.2 KB
Line 
1#!/bin/sh
2#
3#  Usage: mkspec CPU
4#
5
6RTEMS_DIR=`dirname $0`/@top_srcdir@
7
8CFG=../setup.cache
9
10specsrc=${RTEMS_DIR}/gdb/gdb.spec.in
11
12usage()
13{
14  echo "$0 [options] <target_alias>"
15  echo "  options:"
16  echo "    -cfg <setup.cache>"
17  echo "    -a <alternate specs.in>"
18  exit 1 ;
19}
20
21while test $# -ge 2; do
22case $1 in
23-cfg)
24  shift
25  CFG=$1
26  shift
27  ;;
28-a)        # alternate specs file
29  shift
30  specsrc=$1
31  shift
32  ;;
33-*)
34  echo "invalid option $1";
35  usage
36  ;;
37esac
38done
39
40if test ! $# -eq 1;
41then
42  echo "Invalid number of arguments"
43  usage
44fi
45
46# target to build for
47target_alias=$1
48
49. ./$CFG
50
51patchn=-1
52if test -n "${gdb_patch_version}"; then
53patchn=`expr $patchn + 1`
54PATCH1="Patch${patchn}: gdb-${gdb_version}-rtems-${gdb_patch_version}.diff"
55fi
56
57sed -e "s,@PATCH1\@,${PATCH1}," \
58    -e "s%@Release\@%${gdb_rpm_release}%g" \
59    -e "s%@prefix\@%@prefix@%g" \
60    -e "s%@target_alias\@%${target_alias}%g" \
61    -e "s,@rpmprefix\@,@rpmprefix@,g" \
62    -e "s%@rpmgroup\@%@rpmgroup@%g" \
63    -e "s%@osversion\@%@osversion@%g" \
64    -e "s%@gdb_version\@%${gdb_version}%g" \
65    -e "s%@gdb_patch_version\@%${gdb_patch_version}%g" \
66    -e "s%@gdb_suffix\@%${gdb_suffix}%g" \
67< ${specsrc}
Note: See TracBrowser for help on using the repository browser.