4.104.114.84.95
Last change
on this file since 0f242f5f was
0f242f5f,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/20/99 at 19:54:36
|
Moving things to an rtems subdirectory like the other tools.
|
-
Property mode set to
100644
|
File size:
696 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | |
---|
4 | RTEMS_DIR=`dirname $0` |
---|
5 | RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \ |
---|
6 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
7 | |
---|
8 | bsp=$1 |
---|
9 | target_alias=$2 |
---|
10 | release=0 |
---|
11 | |
---|
12 | # Some linux distributions use /usr/src/packages |
---|
13 | # redhat uses /usr/src/redhat |
---|
14 | # others might use /usr/src |
---|
15 | if test -d /usr/src/packages/SPECS; |
---|
16 | then |
---|
17 | dst=/usr/src/packages/SPECS; |
---|
18 | elif test -d /usr/src/redhat/SPECS; |
---|
19 | then |
---|
20 | dst=/usr/src/redhat/SPECS; |
---|
21 | elif test -d /usr/src/SPECS/; |
---|
22 | then |
---|
23 | dst=/usr/src/SPECS; |
---|
24 | fi |
---|
25 | |
---|
26 | sed -e "s%@Version@%${RTEMS_VERSION}%g" \ |
---|
27 | -e "s%@bsp@%${bsp}%g" \ |
---|
28 | -e "s%@Release@%${release}%g" \ |
---|
29 | -e "s%@target_alias@%${target_alias}%g" \ |
---|
30 | < ${RTEMS_DIR}/rtems.spec.in \ |
---|
31 | > ${dst}/rtems-$target_alias-$bsp.spec |
---|
Note: See
TracBrowser
for help on using the repository browser.