summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2006-08-27 12:46:13 +0000
committerChris Johns <chrisj@rtems.org>2006-08-27 12:46:13 +0000
commit896247d5e664c18c0133d014b347e60d075a9800 (patch)
tree42bb924a929330745853b2017cec6c2ef3f97f93
parentSet the prefix into the MSYS fstab, This is a hack but it works. (diff)
downloadrtems-896247d5e664c18c0133d014b347e60d075a9800.tar.bz2
Handle the noarch rpms. Dump the file list.
-rwxr-xr-xcontrib/mingw/build-exes.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/contrib/mingw/build-exes.sh b/contrib/mingw/build-exes.sh
index 3c130a2601..7c8fd398c3 100755
--- a/contrib/mingw/build-exes.sh
+++ b/contrib/mingw/build-exes.sh
@@ -8,6 +8,8 @@
# script.
#
+source=$(dirname $0)
+
terminate()
{
echo "error: $*" >&2
@@ -22,9 +24,9 @@ check()
}
version=4.7
-tool_build=1
+tool_build=3
-target_list="i386 m68k powerpc sparc arm mips"
+target_list=$(cat $source/targets)
mingw32_cpu_list="i686"
@@ -36,8 +38,6 @@ targets=$target_list
run_prefix=
relocation=
-source=$(dirname $0)
-
if [ "$source" = "." ]; then
source=$(pwd)
fi
@@ -117,8 +117,8 @@ get_rpm_list()
#
for p in $mingw32_cpu_list
do
- common_rpms=$(get_rpm_list $p $common_label)
- check "getting the common RPM list"
+ common_rpms="$(get_rpm_list noarch auto) $(get_rpm_list $p $common_label)"
+ check "getting the autotools and common RPM list"
rpm_options="--ignoreos --force --nodeps --noorder "
@@ -139,6 +139,9 @@ do
done
files=$(find $relocation -type f | sed -e "s/^$(echo ${relocation} | sed 's/\//\\\//g')//" -e "s/^\///" | sort)
+
+ echo "$files" > $relocation/files.txt
+
check "find the file list"
of=$relocation/rtems-files.nsi
@@ -208,6 +211,7 @@ do
echo "!define RTEMS_LOGO \"$source/rtems_logo.bmp\"" >> $of
echo "!define RTEMS_BINARY \"$rtems_binary\"" >> $of
echo "!define RTEMS_LICENSE_FILE \"$source/rtems-license.rtf\"" >> $of
+ echo "!define TOOL_PREFIX \"$prefix\"" >> $of
echo "!include \"$relocation/rtems-files.nsi\"" >> $of
echo "!include \"$source/rtems-tools.nsi\"" >> $of