source: rtems/scripts/mkbspspec.in @ 43e7d103

4.104.114.84.95
Last change on this file since 43e7d103 was 43e7d103, checked in by Joel Sherrill <joel.sherrill@…>, on 10/21/99 at 15:59:54

Changes from Ralf with script-19991021-0. He fixed the %files
issue and has mkbspspec in a better state. user.cfg is now
gone.

There are some miscellaneous changes to buildall done by Joel
to clean up the build process.

  • Property mode set to 100644
File size: 840 bytes
Line 
1#!/bin/sh
2#
3
4RTEMS_DIR=`dirname $0`/@top_srcdir@
5RTEMS_VERSION=@RTEMS_VERSION@
6
7CFG=setup.cache
8dst=@RPM_SPECSdir@
9
10usage()
11{
12  echo "$0 [options] <target_alias> <bsp>"
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 2;
39then
40  echo "Invalid number of arguments"
41  usage
42fi
43
44# target to build for
45target_alias=$1
46bsp=$2
47
48. ./$CFG
49
50specfile=${dst}/$target_alias-$bsp-$RTEMS_VERSION.spec
51
52sed -e "s%@Version@%${RTEMS_VERSION}%g" \
53-e "s%@bsp@%${bsp}%g" \
54-e "s%@Release@%${rtems_release}%g" \
55-e "s%@target_alias@%${target_alias}%g" \
56< ${RTEMS_DIR}/rtems/rtems.spec.in \
57> ${specfile}
58
59echo Generated ${specfile}
Note: See TracBrowser for help on using the repository browser.