source: rtems/scripts/cpukit/mkspec.in @ 9c8ee7b

4.104.114.84.95
Last change on this file since 9c8ee7b was 9c8ee7b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 31, 2003 at 5:32:20 AM

2003-01-31 Ralf Corsepius <corsepiu@…>

  • gdb/gdb.add: Remove header, broken cdn-X configuration, %clean, Replace @exe_ext@ with %{_exeext}.
  • gdb/mkspec.in: Remove exe_ext.
  • gdb/target-gdb.add: Replace @exe_ext@ with %{_exeext}.
  • gdb/Makefile.am: Use $(top_builddir)/common/common.add, $(top_builddir)/common/clean.add, header.add.
  • gcc3newlib/base-gcj.add: Replace @exe_ext@ with %{_exeext}.
  • cpukit/mkspec.in: Remove exe_ext.
  • binutils/Makefile.am: Use $(top_builddir)/common/common.add, $(top_builddir)/common/clean.add, header.add.
  • Property mode set to 100644
File size: 877 bytes
Line 
1#! /bin/sh
2
3RTEMS_DIR=`dirname $0`/@top_srcdir@
4RTEMS_VERSION=@VERSION@
5RPM_VERSION=`echo ${RTEMS_VERSION} | tr - _`
6
7CFG=../setup.cache
8dst=@RPM_SPECSdir@
9
10usage()
11{
12  echo "$0 [options] <target_alias>"
13  echo "  options:"
14  echo "    -cfg <setup.cache>"
15  echo "    -o <rpm-spec-dir>"
16  exit 1 ;
17}
18
19while test $# -ge 3; do
20case $1 in
21-cfg)
22  shift
23  CFG=$1
24  shift
25  ;;
26-o)
27  shift
28  dst=$1
29  shift
30  ;;
31-*)
32  echo "invalid option $1";
33  usage
34  ;;
35esac
36done
37
38if test ! $# -eq 1;
39then
40  echo "Invalid number of arguments" >&2
41  usage >&2
42fi
43
44# target to build for
45target_alias=$1
46
47. ./$CFG
48
49sed -e "s%@Release\@%${rtems_rpm_release}%g" \
50    -e "s%@rtems_version\@%${RTEMS_VERSION}%g" \
51    -e "s%@rpm_version\@%${RPM_VERSION}%g" \
52    -e "s,@rpm_build_root\@,${rpm_build_root},g" \
53    -e "s%@target_alias\@%${target_alias}%g" \
54< ${RTEMS_DIR}/cpukit/rtems-cpukit.spec.in
Note: See TracBrowser for help on using the repository browser.