source: rtems/scripts/cpukit/mkspec.in @ 084879d

4.104.114.84.95
Last change on this file since 084879d was 3d36fe3d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/29/02 at 07:55:49

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

  • configure.ac: Use AC_CONFIG_FILES(script, chmod +x script) to generate mk*spec scripts.
  • mkbspspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • mkbinutilsspec.in: Use ',' as pattern delimiter in sed expression for $rpm_build_root.
  • cpukit/mkspec.in: Cosmetical changes.
  • Property mode set to 100644
File size: 931 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@
9exe_ext=@EXEEXT@
10
11usage()
12{
13  echo "$0 [options] <target_alias>"
14  echo "  options:"
15  echo "    -cfg <setup.cache>"
16  echo "    -o <rpm-spec-dir>"
17  exit 1 ;
18}
19
20while test $# -ge 3; do
21case $1 in
22-cfg)
23  shift
24  CFG=$1
25  shift
26  ;;
27-o)
28  shift
29  dst=$1
30  shift
31  ;;
32-*)
33  echo "invalid option $1";
34  usage
35  ;;
36esac
37done
38
39if test ! $# -eq 1;
40then
41  echo "Invalid number of arguments" >&2
42  usage >&2
43fi
44
45# target to build for
46target_alias=$1
47
48. ./$CFG
49
50sed -e "s%@Release\@%${rtems_rpm_release}%g" \
51    -e "s%@rtems_version\@%${RTEMS_VERSION}%g" \
52    -e "s%@rpm_version\@%${RPM_VERSION}%g" \
53    -e "s,@rpm_build_root\@,${rpm_build_root},g" \
54    -e "s%@target_alias\@%${target_alias}%g" \
55    -e "s%@exe_ext\@%${exe_ext}%g" \
56< ${RTEMS_DIR}/cpukit/rtems-cpukit.spec.in
Note: See TracBrowser for help on using the repository browser.