Changeset c937033e in rtems


Ignore:
Timestamp:
Oct 19, 1999, 10:10:08 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7815d96
Parents:
38118d3
Message:

Made it easier to change version numbers.

Location:
scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/gdb.spec.in

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

    r38118d3 rc937033e  
    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# gdb version number
     14gdb_version=4.18
     15gdb_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-gdb-${gdb_version}.spec
     32
     33sed -e "s%@Release@%${release}%g" \
     34    -e "s%@target_alias@%${target_alias}%g" \
     35    -e "s%@gdb_version@%${gdb_version}%g" \
     36    -e "s%@gdb_patch_version@%${gdb_patch_version}%g" \
    3137< ${RTEMS_DIR}/gdb.spec.in \
    32 > ${dst}/$target_alias-gdb.spec
     38> ${specfile}
    3339
    3440case ${target} in
     
    4147     ;;
    4248  *) ;;
    43 esac >> ${dst}/$target_alias-gdb.spec
     49esac >> ${specfile}
    4450
    45 echo Generated ${dst}/$target_alias-gdb.spec.
     51echo Generated ${specfile}.
Note: See TracChangeset for help on using the changeset viewer.