Moving things to an rtems subdirectory like the other tools.

This commit is contained in:
Joel Sherrill
1999-10-20 19:54:36 +00:00
parent d35e532bb3
commit 0f242f5f9a
2 changed files with 0 additions and 80 deletions

31
scripts/mkbspspec.in Normal file
View File

@@ -0,0 +1,31 @@
#!/bin/sh
#
RTEMS_DIR=`dirname $0`
RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
bsp=$1
target_alias=$2
release=0
# Some linux distributions use /usr/src/packages
# redhat uses /usr/src/redhat
# others might use /usr/src
if test -d /usr/src/packages/SPECS;
then
dst=/usr/src/packages/SPECS;
elif test -d /usr/src/redhat/SPECS;
then
dst=/usr/src/redhat/SPECS;
elif test -d /usr/src/SPECS/;
then
dst=/usr/src/SPECS;
fi
sed -e "s%@Version@%${RTEMS_VERSION}%g" \
-e "s%@bsp@%${bsp}%g" \
-e "s%@Release@%${release}%g" \
-e "s%@target_alias@%${target_alias}%g" \
< ${RTEMS_DIR}/rtems.spec.in \
> ${dst}/rtems-$target_alias-$bsp.spec