Changeset 38118d3 in rtems


Ignore:
Timestamp:
Oct 19, 1999, 10:07:21 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c937033e
Parents:
ab25407c
Message:

Now easier to modify version numbers in scripts.

Location:
scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/binutils.spec.in

    rab25407c r38118d3  
    2020Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
    2121
    22 Version:      @Version@
     22Version:      binutils-@binutils_version@
    2323Summary:      binutils for target @target_alias@
    24 Source0:        binutils-990901.tar.gz
    25 Patch0:         binutils-990901-rtems-19991015.diff
     24Source0:        binutils-@binutils_version@.tar.gz
     25Patch0:         binutils-@binutils_version@-rtems-@binutils_patch_version@.diff
    2626
    2727Buildroot:    /tmp
     
    3838
    3939%prep
    40 # untar the sources inside @target_alias@-binutils-@Version@
     40# untar the sources inside @target_alias@-binutils
    4141%setup -c -n @target_alias@-binutils -a 0
    4242
     
    4646test -d build || mkdir build
    4747( cd build
    48   ../binutils-990901/configure --target=@target_alias@ \
     48  ../binutils-@binutils_version@/configure --target=@target_alias@ \
    4949    --verbose --prefix=/opt/rtems
    5050
  • scripts/mkbinutilspec

    rab25407c r38118d3  
    55
    66RTEMS_DIR=`dirname $0`
    7 RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \
    8 sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
    97
    108target_alias=$1
    11 release=0
     9
     10# RPM release number
     11rpm_release=0
     12
     13# binutils version number
     14binutils_version=990901
     15binutils_patch_version=19991015
    1216
    1317# Some linux distributions use /usr/src/packages
     
    2529fi
    2630
    27 sed -e "s%@Version@%${RTEMS_VERSION}%g" \
    28 -e "s%@bsp@%${bsp}%g" \
    29 -e "s%@Release@%${release}%g" \
    30 -e "s%@target_alias@%${target_alias}%g" \
     31specfile=${dst}/$target_alias-binutils-${binutils_version}.spec
     32
     33sed -e "s%@Release@%${release}%g" \
     34    -e "s%@target_alias@%${target_alias}%g" \
     35    -e "s%@binutils_version@%${binutils_version}%g" \
     36    -e "s%@binutils_patch_version@%${binutils_patch_version}%g" \
    3137< ${RTEMS_DIR}/binutils.spec.in \
    32 > ${dst}/$target_alias-binutils.spec
     38> ${specfile}
    3339
    34 echo Generated ${dst}/$target_alias-binutils.spec.
     40echo Generated ${specfile}.
Note: See TracChangeset for help on using the changeset viewer.