source: rtems/scripts/mkbspspec @ 18408af

4.104.114.84.95
Last change on this file since 18408af was 18408af, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 15, 1999 at 2:11:02 PM

Ralf Corsepius (corsepiu@…) submitted these scripts to
help build RPMs.

  • Property mode set to 100644
File size: 696 bytes
Line 
1#!/bin/sh
2#
3
4RTEMS_DIR=`dirname $0`
5RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \
6sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
7
8bsp=$1
9target_alias=$2
10release=0
11
12# Some linux distributions use /usr/src/packages
13# redhat uses /usr/src/redhat
14# others might use /usr/src
15if test -d /usr/src/packages/SPECS; 
16then
17dst=/usr/src/packages/SPECS;
18elif test -d /usr/src/redhat/SPECS;
19 then
20dst=/usr/src/redhat/SPECS;
21elif test -d /usr/src/SPECS/; 
22then
23dst=/usr/src/SPECS;
24fi
25
26sed -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.