Changeset 5adb73a in rtems


Ignore:
Timestamp:
Aug 4, 2006, 9:50:08 AM (15 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
979f36f
Parents:
1a768ef
Message:

Updated to support the new installer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/mingw/build-exes.sh

    r1a768ef r5adb73a  
     1#! /bin/sh
    12#
    23# $Id$
     
    2223
    2324version=4.7
     25tool_version=20060720
     26tool_build=1
    2427
    2528target_list="i386 m68k powerpc sparc arm mips"
     
    2730mingw32_cpu_list="i686"
    2831
    29 rpm_topdir=$(rpmbuild --showrc | grep "\?\?\: _topdir" | sed 's/.*:.*_topdir\t*//')
    30 
    31 common_label="base"
     32rpm_topdir=$(rpm --eval "%{_topdir}")
     33
     34common_label="common"
    3235local_rpm_database=yes
    3336targets=$target_list
     
    106109get_rpm_list()
    107110{
    108   echo $(ls $rpm_topdir/mingw32/RPMS/$1/*.rpm | grep -v "debuginfo" | grep $2)
     111  echo $(ls $rpm_topdir/mingw32/RPMS/$1/*.rpm | grep -v "debuginfo" | grep $2 | grep $3)
    109112}
    110113
     
    114117for p in $mingw32_cpu_list
    115118do
    116  common_rpms=$(get_rpm_list $p base)
     119 common_rpms=$(get_rpm_list $p $common_label "$tool_version.$tool_build")
     120 check "getting the common RPM list"
    117121
    118122 rpm_options="--ignoreos --force --nodeps --noorder "
     
    120124 for t in $targets
    121125 do
    122   rpms=$(get_rpm_list $p $t)
     126  rpms=$(get_rpm_list $p $t "$tool_version.$tool_build")
     127  check "getting the RPM list"
    123128  if [ -n "$rpms" ]; then
    124129   echo "Clean the relocation directory"
    125130   $rm -rf $relocation
     131   check "removing the relocation directory: $relocation"
    126132
    127133   for r in $common_rpms $rpms
     
    129135    echo "rpm $rpm_database --relocate $prefix=$relocation $rpm_options -i $r"
    130136    $rpm $rpm_database --relocate $prefix=$relocation $rpm_options -i $r
     137    check "installing rpm: $r"
    131138   done
    132139
    133140   files=$(find $relocation -type f | sed -e "s/^$(echo ${relocation} | sed 's/\//\\\//g')//" -e "s/^\///" | sort)
     141   check "find the file list"
    134142
    135143   of=$relocation/rtems-files.nsi
     
    185193   echo "!macroend" >> $of
    186194
     195   rtems_binary=$rpm_topdir/mingw32/exe/$p
     196   echo "mkdir -p $rtems_binary"
     197   $mkdir -p $rtems_binary
     198   check "make the RTEMS binary install point: $rtems_binary"
     199
    187200   of=$relocation/rtems.nsi
    188201   echo "!define RTEMS_TARGET \"$t\"" > $of
    189202   echo "!define RTEMS_VERSION \"$version\"" >> $of
     203   echo "!define RTEMS_BUILD_VERSION \"$tool_version-$tool_build\"" >> $of
    190204   echo "!define RTEMS_PREFIX \"rtems-tools\"" >> $of
     205   echo "!define RTEMS_SOURCE \"$source\"" >> $of
     206   echo "!define RTEMS_RELOCATION \"$relocation\"" >> $of
    191207   echo "!define RTEMS_LOGO \"$source/rtems_logo.bmp\"" >> $of
    192    echo "!define RTEMS_BINARY \"$rpm_topdir\"" >> $of
     208   echo "!define RTEMS_BINARY \"$rtems_binary\"" >> $of
     209   echo "!define RTEMS_LICENSE_FILE \"$source/rtems-license.rtf\"" >> $of
    193210   echo "!include \"$relocation/rtems-files.nsi\"" >> $of
    194211   echo "!include \"$source/rtems-tools.nsi\"" >> $of
     
    196213   echo "cp $source/rtems.ini $relocation/rtems.ini"
    197214   $cp $source/rtems.ini $relocation/rtems.ini
     215   check "coping the dialog definition file: $relocation/rtems.ini"
    198216
    199217   echo "makensis $of"
    200218   $makensis $of
     219   check "making the installer: $of"
    201220
    202221  fi
Note: See TracChangeset for help on using the changeset viewer.