source: rtems/scripts/cpukit/mkspec.in @ 620c972

4.104.114.84.95
Last change on this file since 620c972 was 620c972, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 29, 2002 at 7:40:53 AM

2002-07-29 Ralf Corsepius <corsepiu@…>

  • ChangeLog?: Fix 2002-07-22 ChangeLog? entry bogusly referring to Joel.
  • cpukit/Makefile.am: New.
  • cpukit/mkspec.in: New.
  • cpukit/rtems-cpukit.spec.in: New.
  • cpukit/.cvsignore: New.
  • configure.ac: Add cpukit. Add RTEMS_TOP to pickup _RTEMS_VERSION (required by cpukit).
  • Makefile.am: Add cpukit. Add ACLOCAL_AMFLAGS (required to pickup RTEMS_VERSION).
  • setup.def: Use %{_tmppath} as default for $rpm_build_root.
  • mkbinutilsspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • mkgccnewlibspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • mkgcc3newlibspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • mkgdbspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • Property mode set to 100644
File size: 932 bytes
Line 
1#!/bin/sh
2#
3
4RTEMS_DIR=`dirname $0`/@top_srcdir@
5RTEMS_VERSION=@VERSION@
6RPM_VERSION=`echo ${RTEMS_VERSION} | tr - _`
7
8CFG=../setup.cache
9dst=@RPM_SPECSdir@
10exe_ext=@EXEEXT@
11
12usage()
13{
14  echo "$0 [options] <target_alias>"
15  echo "  options:"
16  echo "    -cfg <setup.cache>"
17  echo "    -o <rpm-spec-dir>"
18  exit 1 ;
19}
20
21while test $# -ge 3; do
22case $1 in
23-cfg) 
24  shift
25  CFG=$1
26  shift
27  ;;
28-o)
29  shift
30  dst=$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" >&2
43  usage >&2
44fi
45
46# target to build for
47target_alias=$1
48
49. ./$CFG
50
51sed -e "s%@Release\@%${rtems_rpm_release}%g" \
52    -e "s%@rtems_version\@%${RTEMS_VERSION}%g" \
53    -e "s%@rpm_version\@%${RPM_VERSION}%g" \
54    -e "s,@rpm_build_root\@,${rpm_build_root},g" \
55    -e "s%@target_alias\@%${target_alias}%g" \
56    -e "s%@exe_ext\@%${exe_ext}%g" \
57< ${RTEMS_DIR}/cpukit/rtems-cpukit.spec.in
Note: See TracBrowser for help on using the repository browser.