OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [scripts/] [cpukit/] [mkspec.in] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#! /bin/sh
2
 
3
RTEMS_DIR=`dirname $0`/@top_srcdir@
4
RTEMS_VERSION=@VERSION@
5
RPM_VERSION=`echo ${RTEMS_VERSION} | tr - _`
6
 
7
CFG=../setup.cache
8
dst=@RPM_SPECSdir@
9
exe_ext=@EXEEXT@
10
 
11
usage()
12
{
13
  echo "$0 [options] "
14
  echo "  options:"
15
  echo "    -cfg "
16
  echo "    -o "
17
  exit 1 ;
18
}
19
 
20
while test $# -ge 3; do
21
case $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
  ;;
36
esac
37
done
38
 
39
if test ! $# -eq 1;
40
then
41
  echo "Invalid number of arguments" >&2
42
  usage >&2
43
fi
44
 
45
# target to build for
46
target_alias=$1
47
 
48
. ./$CFG
49
 
50
sed -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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.