contrib: Remove.

This commit is contained in:
Joel Sherrill
2013-03-12 16:03:02 -05:00
parent 76e8683498
commit 9ad9dc2134
38 changed files with 0 additions and 4045 deletions

1
contrib/.gitignore vendored
View File

@@ -1 +0,0 @@
INSTALL

View File

@@ -1 +0,0 @@
Chris Johns <chrisj@rtems.org>

View File

@@ -1,343 +0,0 @@
#
# $RTEMS$
#
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

View File

@@ -1,79 +0,0 @@
Copyright (C) 2006-2007 Chris Johns, Sydney, Australia <chrisj@rtems.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
To build mingw32 tools on a Fedora Core 7 box:
1. Add makensis to your path.
$ export PATH=/opt/nsis/2.29/bin:$PATH
2. Set up the RPM packages:
$ cat ~/.rpmrc
os_canon: mingw32: mingw32 23
arch_canon: mingw32: i686 1
arch_compat: mingw32: i686 noarch
buildarch_compat: mingw32: i686 noarch
optflags: mingw32 -O2 -g
optflags: i686 -O2 -pipe
$ cat ~/.rpmmacros
%_topdir /home2/work/chris/rtems/4.8/packages
%_tmppath /home2/work/chris/tmp/rtems
%_rpmdir %_topdir/%_target_os/RPMS
%_srcrpmdir %_topdir/%_target_os/SRPMS
%_signature gpg
# %_gpg_path ~/.gnupg
# %_gpg_name "RTEMS Packager"
%_gpg_name rtems
%vendor: RTEMS Project
%packager chrisj@rtems.org
%distribution RTEMS Project http://www.rtems.org/
$ mkdir -p /home2/work/chris/rtems/4.8/packages
$ mkdir /home2/work/chris/rtems/4.8/packages/SOURCES
$ mkdir /home2/work/chris/rtems/4.8/packages/BUILD
$ mkdir -p /home2/work/chris/rtems/4.8/packages/linux/SRPMS
$ mkdir -p /home2/work/chris/rtems/4.8/packages/linux/RPMS
$ mkdir -p /home2/work/chris/rtems/4.8/packages/mingw32/SRPMS
$ mkdir -p /home2/work/chris/rtems/4.8/packages/mingw32/RPMS
$ cp /home2/work/chris/rtems/4.8/head/contrib/crossrpms/patches/* \
/home2/work/chris/rtems/4.8/packages/SOURCES/.
Download the required sources to:
/home2/work/chris/rtems/4.8/packages/SOURCES
The list you need depends on what version you build. A tool exists
that atempts to determine the package. Ask on the list for it.
2. Run the build.sh script where:
-d : debug output from the script and nested scripts
-h host : the host to buidl for
-p prefix : the prefix (not that important for mingw)
-s crossrpms : the path to the crossrpms source tree
-r relocation : the path for the NSIS installer executables
$ export PATH=/opt/rtems-4.8/bin:$PATH
$ cd /home2/work/chris/rtems/4.8/head/contrib/crossrpms
$ ./bootstrap
$ cd /home2/work/chris/rtems/4.8/head/contrib/mingw
$ ./build.sh -d -h mingw32 \
-p /home2/work/chris/rtems/4.8/build/rpms \
-s /home2/work/chris/rtems/4.8/head/contrib/crossrpms \
-r /home2/work/chris/rtems/4.8/build/mingw
Sit back and wait. The build take a long time on a fast machine.

View File

@@ -1,4 +0,0 @@
package_name=autoconf-2.61
package_source=$package_name.tar.bz2
package_taropts=jxf
package_patches=autoconf-20070411-cross-test-x.patch

View File

@@ -1,4 +0,0 @@
package_name=automake-1.10
package_source=$package_name.tar.bz2
package_taropts=jxf
package_patches=

View File

@@ -1,19 +0,0 @@
#! /bin/sh
source=$(dirname $0)
if [ "$source" = "." ]; then
source=$(pwd)
fi
echo
echo " DO NOT CLOSE DO NOT CLOSE"
echo
echo "Warning: this command window will automatically close."
echo
echo "Build output: $source/at-log.txt"
echo
$source/build-autotools.sh $* 2>&1 >> $source/at-log.txt
ec=$?
if [ $ec -ne 0 ]; then
echo "ERROR: code '$ec'. Press Any Key to continue"
read
fi
exit $ec

View File

@@ -1,281 +0,0 @@
#! /bin/sh
terminate()
{
echo "error: $*" >&2
if [ $? -eq 0 ]; then
exit 222
fi
exit $?
}
check()
{
if [ $? -ne 0 ]; then
terminate $*
fi
}
source=$(dirname $0)
if [ "$source" = "." ]; then
source=$(pwd)
fi
build=none
clean=no
prefix=none
while [ $# -gt 0 ];
do
case $1 in
-b)
shift
build=$1
;;
-c)
shift
config=$1
;;
-d)
set -x
;;
-h)
usage
exit 223
;;
-p)
shift
prefix=$1
;;
-s)
shift
source=$1
;;
*)
terminate "invalid option (try -h): $1"
;;
esac
shift
done
#
# dirdepth: find the depth of a directory
#
# $1 : path
#
dirdepth()
{
local depth=0
local p=$1
p=$(echo $p | sed -e "s/^\///g")
p=$(echo $p | sed -e "s/\/$//g")
while [ $p != . ];
do
depth=$(expr $depth + 1)
p=$(dirname $p)
done
echo $depth
}
#
# build_package()
#
# $1 : package
# $2 : package source
# $3 : tar options
# $4 : patch list
#
build_package()
{
local mydir=$(pwd)
if [ ! -f $source/$2 ]; then
terminate "$1 source is not present or not a file: $2"
fi
for p in $4
do
if [ ! -f $source/$p ]; then
terminate "$1 patch is not present or not a file: $p"
fi
done
echo "cd $build"
cd $build
check "changing to $build directory"
echo "tar $3 $source/$2"
tar $3 $source/$2
check "extraction of source: $2"
echo "cd $build/$1"
cd $build/$1
check "changing to $build/$1 directory"
for p in $4
do
echo "patch -p0 < $source/$p"
patch -p0 < $source/$p
check "patching $autoconf with $p"
done
echo "cd $build"
cd $build
check "changing to $build directory"
echo "rm -rf mingw32-$1"
rm -rf mingw32-$1
check "removing mingw32-$1 build directory"
echo "mkdir mingw32-$1"
mkdir mingw32-$1
check "creating mingw32-$1"
echo "cd $build/mingw32-$1"
cd $build/mingw32-$1
check "changing to $build/mingw32-$1"
echo "$build/$1/configure --prefix=$prefix"
$build/$1/configure --prefix=$prefix
check "configuring $1"
echo "make"
make
check "building $1"
echo "make DESTDIR=$build/install-$1 install"
make DESTDIR=$build/install-$1 install
check "installing to $build/install-$1"
echo find $build/install-$1$prefix -type f
local files=$(find $build/install-$1$prefix -type f)
check "reading $1 file list"
of=$prefix/Uninstall/$1-files
echo "b install-$1$prefix" | sed -e "s/\//\\\\/g" >> $of
re_path=$(echo $build/install-$1$prefix/ | sed -e 's/\//\\\//g' -e 's/\./\\\./g')
dirs=
for f in $files
do
if [ $(basename $f) = dir ]; then
continue
fi
f=$(echo $f | sed -e "s/$re_path//g")
found=no
fd=$(dirname $f)
for d in $dirs
do
if [ $d = $fd ]; then
found=yes
break;
fi
done
if [ $found = no ]; then
echo "d $fd" | sed -e "s/\//\\\\/g" >> $of
dirs="$fd $dirs"
fi
echo "f $f" | sed -e "s/\//\\\\/g" >> $of
done
for d in $dirs
do
while [ $d != . ]
do
found=no
for rd in $dirs
do
if [ "$d" = "$rd" ]; then
found=yes
break
fi
done
if [ $found = no ]; then
dirs="$dirs $d"
fi
d=$(dirname $d)
done
done
sorted_dirs=
for d in $dirs
do
depth=$(dirdepth $d)
nsp=
for sd in $sorted_dirs
do
if [ ! -z "$d" ]; then
spd=$(dirdepth $sd)
if [ $depth -ge $spd ]; then
sd="$d $sd"
d=
fi
fi
nsp="$nsp $sd"
done
if [ ! -z "$d" ]; then
nsp="$nsp $d"
fi
sorted_dirs=$nsp
done
for d in $sorted_dirs
do
echo "D $d" | sed -e "s/\//\\\\/g" >> $of
done
echo "cd $mydir"
cd $mydir
check "changing to $mydir"
}
munch_path()
{
local p=$1
if [ $(echo $p | sed -e "s/[a-zA-Z]:.*/yes/g") = yes ]; then
p=$(echo $p | sed -e "s/^[a-zA-Z]:/\/\0/g" -e "s/://g")
fi
echo $p
}
if [ $build = none ]; then
terminate "no build specified (try -h)"
fi
if [ $prefix = none ]; then
terminate "no prefix specified (try -h)"
fi
source=$(munch_path $source)
build=$(munch_path $build)
prefix=$(munch_path $prefix)
config=$(munch_path $config)
if [ ! -d $build ]; then
terminate "build path is not a directory or does not exist: $build"
fi
if [ ! -d $prefix ]; then
terminate "prefix path is not a directory or does not exist: $prefix"
fi
if [ ! -f $config ]; then
terminate "could find package configuration file: $config"
fi
. $config
# Need to handle paths carefully as a problem seems to exist
# with autoconf when it is in the path.
if [ $(echo $package_name | sed -e "s/autoconf-.*/yes/g") != yes ]; then
export PATH=$prefix/bin:$PATH
fi
build_package $package_name \
$package_source \
$package_taropts \
"$package_patches"
exit $?

View File

@@ -1,503 +0,0 @@
#! /bin/sh
# RTEMS Build Executable Installers script.
#
# This script takes the RPM files built using the mingw/build-rpms.sh
# script.
#
echo $0 $*
source=$(dirname $0)
terminate()
{
echo "error: $*" >&2
exit 1
}
check()
{
if [ $? -ne 0 ]; then
terminate
fi
}
. $source/version
target_list=$(cat $source/targets)
. $source/target-section-text
mingw32_cpu_list="i686"
rpm_topdir=$(rpm --eval "%{_topdir}")
rtems_url="http://www.rtems.org/ftp/pub/rtems/windows/${version}/build-${tool_build}"
common_label="common"
local_rpm_database=yes
targets=$target_list
run_prefix=
relocation=
rpm_install=yes
package_source=$(cat $HOME/.rpmmacros | grep "^%_topdir" | sed -e "s/^.* //g")/SOURCES
if [ "$source" = "." ]; then
source=$(pwd)
fi
while [ $# -gt 0 ];
do
case $1 in
-d)
set -x
;;
-i)
rpm_install=no
;;
-l)
shift
rpm_prefix=$1-
rpm_prefix_arg="--enable-rpmprefix=$rpm_label"
;;
-n)
run_prefix="echo "
;;
-p)
shift
prefix=$1
;;
-R)
local_rpm_database=no
;;
-r)
shift
relocation=$1
;;
-t)
shift
targets=$1
;;
-v)
shift
version=$1
;;
--help)
echo "$0 -??"
exit 2
;;
*)
terminate "error: invalid option (try --help): $1"
;;
esac
shift
done
cd=${run_prefix}cd
cp=${run_prefix}cp
make=${run_prefix}make
makensis=${run_prefix}makensis
mkdir=${run_prefix}mkdir
rm=${run_prefix}rm
rpmbuild=${run_prefix}rpmbuild
rpm=${run_prefix}rpm
if [ -z "$relocation" ]; then
terminate "error: a relocation path needs to be specified"
fi
if [ $local_rpm_database = yes ]; then
rpm_database="--dbpath $prefix/var/lib/rpm"
else
rpm_database=
fi
#
# Get the RPM list given the architecture and the package.
#
# $1 - architecture
# $2 - package
#
get_rpm_list()
{
if [ -d $rpm_topdir/mingw32/RPMS/$1 ]; then
echo $(ls $rpm_topdir/mingw32/RPMS/$1/*.rpm | grep -v "debuginfo" | grep $2)
fi
}
#
# Write target installer code.
#
# $1 - target
# $2 - target section test
# $3 - size of the tools
# $4 - Installer output file name
# $5 - Output file
#
target_installer_exec()
{
local t=$1
local tst=$2
local size_in_k=$3
local outfile=$4
local of=$5
echo "" >> $of
echo "; Target: $t" >> $of
echo "Section \"${!tst}\" Section_$t" >> $of
echo " AddSize $size_in_k" >> $of
echo " StrCpy \$1 \$EXEDIR\\$outfile" >> $of
echo " DetailPrint \"Checking for \$1\"" >> $of
echo " IfFileExists \$1 ${t}_found" >> $of
echo " StrCpy \$1 \$INSTDIR\\Packages\\$outfile" >> $of
echo " DetailPrint \"Checking for \$1\"" >> $of
echo " IfFileExists \$1 ${t}_found" >> $of
echo " SetOutPath \"\$INSTDIR\Packages\"" >> $of
echo " DetailPrint \"Downloading $rtems_url/$outfile\"" >> $of
echo " NSISdl::download $rtems_url/$outfile $outfile" >> $of
echo " Pop \$R0" >> $of
echo " StrCmp \$R0 \"success\" ${t}_found_2 ${t}_not_found_2" >> $of
echo " ${t}_not_found_2:" >> $of
echo " SetDetailsView show" >> $of
echo " DetailPrint \"Download failed: \$R0\"" >> $of
echo " MessageBox MB_OK \"Download failed: \$R0\"" >> $of
echo " Goto ${t}_done" >> $of
echo " ${t}_found_2:" >> $of
echo " Strcpy \$1 \"\$INSTDIR\\Packages\\$outfile\"" >> $of
echo " ${t}_found:" >> $of
echo " DetailPrint \"Installing: \$1\"" >> $of
echo " ExecWait '\"\$1\" \$SilentOption \$DebugOption /D=\$INSTDIR' \$0" >> $of
echo " BringToFront" >> $of
echo " IntCmp \$0 0 +3" >> $of
echo " MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 \"${!tst} install failed. Do you wish to continue ?\" IDYES +2" >> $of
echo " Abort" >> $of
echo " ${t}_done:" >> $of
echo "SectionEnd" >> $of
}
#
# Get the size if kilo-bytes of the package as the listed files.
#
# $1 - relocation directory of installed files.
#
get_size_in_k()
{
if [ ! -d $1 ]; then
terminate "target directory not found: $1"
fi
if [ ! -f $1/files.txt ]; then
terminate "target files not found: $1/files.txt"
fi
local here=$(pwd)
check "getting the current directory"
cd $1
check "changing directory: $1"
local size_in_k=$(du -c -k $(cat files.txt) | grep total | sed -e "s/\t.*//g")
check "getting total size"
cd $here
check "changing directory: $here"
echo $size_in_k
}
#
# Create the installer given the architecture and package.
#
# $1 - architecture/processor
# $2 - package
# $3 - package name
# $4 - outfile
#
create_installer()
{
local p=$1
local t=$2
local n=$3
local outfile=$4
rpm_options="--ignoreos --force --nodeps --noorder "
rpms=$(get_rpm_list $p $t)
check "getting the $n RPM list"
if [ -n "$rpms" ]; then
treloc=$relocation/$n
echo "Relocation path: $treloc"
if [ $rpm_install = yes ]; then
echo "Clean the relocation directory: $treloc"
$rm -rf $treloc
check "removing the relocation directory: $treloc"
for r in $rpms
do
echo "rpm $rpm_database --relocate $prefix=$treloc $rpm_options -i $r"
$rpm $rpm_database --relocate $prefix=$treloc $rpm_options -i $r
check "installing rpm: $r"
done
fi
files=$(find $treloc -type f -a -not \( -name \*.gch \
-o -name rtems.nsi \
-o -name rtems-files.nsi \
-o -name rtems.ini \
-o -name files.txt \) | \
sed -e "s/^$(echo ${treloc} | sed 's/\//\\\//g')//" -e "s/^\///" | sort)
check "find the file list"
echo "$files" > $treloc/files.txt
check "write the file list"
size_in_k=$(get_size_in_k $treloc)
of=$treloc/rtems-files.nsi
echo "!macro RTEMS_INSTALL_FILES" > $of
echo " !ifndef EMPTY_INSTALLER" >> $of
install_dir=
for f in $files
do
d=$(dirname $f)
if [ "$install_dir" != "$d" ]; then
id=$(echo $d | sed -e 's/\//\\/g' -e 's/\/$//')
echo " SetOutPath \"\$INSTDIR\\$id\"" >> $of
install_dir=$d
fi
echo " File \"$treloc/$f\"" >> $of
done
echo " !endif" >> $of
echo "!macroend" >> $of
echo "!macro RTEMS_DELETE_FILES" >> $of
echo " !ifndef EMPTY_INSTALLER" >> $of
#
# Get a list of directories so we can delete them once all
# the files have been deleted. We need to be selective as
# the directory maybe used by another installer.
#
# Once we get a list we need to also add the path down
# to that node and then sort them so we work from bottom up.
#
remove_dirs=
for f in $files
do
d=$(dirname $f)
found=no
for rd in $remove_dirs
do
if [ "$d" = "$rd" ]; then
found=yes
break;
fi
done
if [ $found = no ]; then
remove_dirs="$remove_dirs $d"
fi
rf=$(echo $f | sed -e 's/\//\\/g' -e 's/\/$//')
echo " Delete \"\$INSTDIR\\$rf\"" >> $of
done
for d in $remove_dirs
do
while [ $d != . ]
do
found=no
for rd in $remove_dirs
do
if [ "$d" = "$rd" ]; then
found=yes
break
fi
done
if [ $found = no ]; then
remove_dirs="$remove_dirs $d"
fi
d=$(dirname $d)
done
done
remove_dirs=$(for r in $remove_dirs; do echo $r; done | sort -r -u)
for d in $remove_dirs
do
if [ "$d" = "." ]; then
d=
fi
rd=$(echo $d | sed -e 's/\//\\/g' -e 's/\/$//')
echo " RMDir \"\$INSTDIR\\$rd\"" >> $of
done
echo " !endif" >> $of
echo "!macroend" >> $of
rtems_binary=$rpm_topdir/mingw32/exe/$p
echo "mkdir -p $rtems_binary"
$mkdir -p $rtems_binary
check "make the RTEMS binary install point: $rtems_binary"
of=$treloc/rtems.nsi
echo "!define RTEMS_TARGET \"$n\"" > $of
echo "!define RTEMS_VERSION \"$version\"" >> $of
echo "!define RTEMS_BUILD_VERSION \"$tool_build\"" >> $of
echo "!define RTEMS_PREFIX \"rtems-tools\"" >> $of
echo "!define RTEMS_SOURCE \"$source\"" >> $of
echo "!define RTEMS_RELOCATION \"$treloc\"" >> $of
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 RTEMS_OUTFILE \"$outfile\"" >> $of
echo "!define TOOL_PREFIX \"$prefix\"" >> $of
echo "!define RTEMS_TOOLS_SIZE \"$size_in_k\"" >> $of
if [ $n = $common_label ]; then
echo "!define COMMON_FILES" >> $of
fi
echo "!include \"$treloc/rtems-files.nsi\"" >> $of
echo "!include \"$source/options.nsi\"" >> $of
if [ $n = $common_label ]; then
echo "!include \"$relocation/rtems-sections.nsi\"" >> $of
fi
echo "!include \"$source/rtems-tools.nsi\"" >> $of
echo "cp $source/rtems.ini $treloc/rtems.ini"
$cp $source/rtems.ini $treloc/rtems.ini
check "coping the dialog definition file: $treloc/rtems.ini"
if [ $n = $common_label ]; then
echo "Section -SecCommon" >> $of
echo " SetOutPath \"\$INSTDIR"\" >> $of
echo " File \"\${RTEMS_SOURCE}/AUTHORS"\" >> $of
echo " File \"\${RTEMS_SOURCE}/COPYING\"" >> $of
echo " File \"\${RTEMS_SOURCE}/README\"" >> $of
echo "SectionEnd" >> $of
fi
echo "makensis $of"
$makensis $of
check "making the installer: $of"
fi
}
create_autotools_installer()
{
local p=$1
local t=$2
local n=$3
treloc=$relocation/$n
echo "Relocation path: $treloc"
echo "Clean the relocation directory: $treloc"
$rm -rf $treloc
check "removing the relocation directory: $treloc"
mkdir -p $treloc
check "creating relocation directory: $treloc"
rtems_binary=$rpm_topdir/mingw32/exe/$p
echo "mkdir -p $rtems_binary"
$mkdir -p $rtems_binary
check "make the RTEMS binary install point: $rtems_binary"
size_in_k=2000
outfile=rtems$version-tools-$n-$tool_build.exe
of=$treloc/rtems.nsi
echo "!define RTEMS_TARGET \"$n\"" > $of
echo "!define RTEMS_VERSION \"$version\"" >> $of
echo "!define RTEMS_BUILD_VERSION \"$tool_build\"" >> $of
echo "!define RTEMS_PREFIX \"rtems-tools\"" >> $of
echo "!define RTEMS_SOURCE \"$source\"" >> $of
echo "!define RTEMS_PACKAGE_SOURCE \"$package_source\"" >> $of
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 RTEMS_OUTFILE \"$outfile\"" >> $of
echo "!define TOOL_PREFIX \"$prefix\"" >> $of
echo "!define RTEMS_TOOLS_SIZE \"$size_in_k\"" >> $of
. $source/autoconf.def
echo "!define RTEMS_AUTOCONF \"$package_name\"" >> $of
echo "!define RTEMS_AUTOCONF_SOURCE \"$package_source\"" >> $of
echo "!macro RTEMS_AUTOCONF_PATCHES" >> $of
for p in $package_patches
do
echo " File \"\${RTEMS_PACKAGE_SOURCE}/$p\"" >> $of
done
echo "!macroend" >> $of
echo "!macro RTEMS_DELETE_AUTOCONF_PATCHES" >> $of
for p in $package_patches
do
echo " Delete \"\$INSTDIR\\Packages\\Source\\$p\"" >> $of
done
echo "!macroend" >> $of
. $source/automake.def
echo "!define RTEMS_AUTOMAKE \"$package_name\"" >> $of
echo "!define RTEMS_AUTOMAKE_SOURCE \"$package_source\"" >> $of
echo "!macro RTEMS_AUTOMAKE_PATCHES" >> $of
for p in $package_patches
do
echo " File \"\${RTEMS_PACKAGE_SOURCE}/$p\"" >> $of
done
echo "!macroend" >> $of
echo "!macro RTEMS_DELETE_AUTOMAKE_PATCHES" >> $of
for p in $package_patches
do
echo " Delete \"\$INSTDIR\\Packages\\Source\\$p\"" >> $of
done
echo "!macroend" >> $of
echo "!include \"$source/rtems-autotools.nsi\"" >> $of
echo "cp $source/rtems.ini $treloc/rtems.ini"
$cp $source/rtems.ini $treloc/rtems.ini
check "coping the dialog definition file: $treloc/rtems.ini"
echo "makensis $of"
$makensis $of
check "making the installer: $of"
}
#
# Handle each type of host processor.
#
for p in $mingw32_cpu_list
do
echo "; Components based on each target." > $relocation/rtems-sections.nsi
create_autotools_installer noarch auto autotools
target_installer_exec auto auto_section_text 2000 \
rtems$version-tools-autotools-$tool_build.exe \
$relocation/rtems-sections.nsi
for t in $targets
do
create_installer $p $t $t rtems$version-tools-$t-$tool_build.exe
done
for t in $(cat $source/targets)
do
target_installer_exec $t ${t}_section_text \
$(get_size_in_k $relocation/$t) \
rtems$version-tools-$t-$tool_build.exe \
$relocation/rtems-sections.nsi
done
# Must be done last
create_installer $p $common_label $common_label $version-tools-$tool_build.exe
done

View File

@@ -1,386 +0,0 @@
#! /bin/sh
# RTEMS Build RPM script.
#
# This script builds the RTEMS tools into RPM packages on a Linux Fedora host,
# and supports Canadian cross builds to other hosts. It is light sugar around
# the fine work of Ralf Corsepius thats actually builds the RPM files.
#
# We build all the targets for a given host.
#
# Note: This file should be placed in crossrpms.
#
source=$(dirname $0)
terminate()
{
echo "error: $*" >&2
exit 1
}
check()
{
if [ $? -ne 0 ]; then
terminate
fi
}
processor=$(uname -p)
. $source/version
base_tool_list="binutils gcc"
target_list=$(cat $source/targets)
host_list="cygwin freebsd5.2 freebsd6.0 freebsd6.1 mingw32"
rtems_tool_list="autoconf automake $base_tool_list gdb"
linux_tool_list="autoconf automake $base_tool_list"
cygwin_tool_list="w32api libs autoconf automake $base_tool_list"
freebsd_tool_list="libs autoconf automake $base_tool_list"
mingw32_tool_list="w32api libs autoconf automake $base_tool_list"
cygwin_cc_name="pc"
freebsd_cc_name="pc"
mingw32_cc_name="pc"
linux_cpu_list="$processor"
cygwin_cpu_list="i686"
freebsd_cpu_list="i586"
mingw32_cpu_list="i686"
rpm_topdir=$(rpm --eval "%{_topdir}")
prefix=/opt/rtems-$version
hosts=$host_list
build=$processor-linux-gnu
infos=
targets=$target_list
run_prefix=
rpm_prefix=custom-
rpm_prefix_arg=
local_rpm_database=yes
clean=yes
while [ $# -gt 0 ];
do
case $1 in
-c)
clean=no
;;
-d)
set -x
;;
-h)
shift
hosts=$1
;;
-i)
infos="--enable-infos"
;;
-l)
shift
rpm_prefix=$1-
rpm_prefix_arg="--enable-rpmprefix=$rpm_label"
;;
-n)
run_prefix="echo "
;;
-p)
shift
prefix=$1
;;
-R)
local_rpm_database=no
;;
-s)
shift
source=$1
;;
-t)
shift
targets=$1
;;
-v)
shift
version=$1
;;
--help)
echo "$0 -cdinr -o <output> -h <hosts>" \
"-l <rpm prefix> -p <prefix> -s <source> -t <targets> -v <version>"
exit 2
;;
*)
terminate "error: invalid option (try --help): $1"
;;
esac
shift
done
for t in $targets;
do
if [ -z "$(echo $target_list | grep $t)" ]; then
terminate "error: invalid target: $t"
fi
done
cd=${run_prefix}cd
configure=${run_prefix}${source}/configure
cp=${run_prefix}cp
make=${run_prefix}make
mkdir=${run_prefix}mkdir
rm=${run_prefix}rm
rpmbuild=${run_prefix}rpmbuild
rpm=${run_prefix}rpm
if [ $local_rpm_database = yes ]; then
rpm_database="--dbpath $prefix/var/lib/rpm"
else
rpm_database=
fi
echo " Source: $source"
echo " Prefix: $prefix"
echo " Hosts: $hosts"
echo "Targets: $targets"
if [ ! -f $source/configure ]; then
terminate "$source/configure not found under: $source"
fi
if [ x$prefix != x ]; then
if [ -e $prefix ]; then
if [ ! -d $prefix ]; then
terminate "$prefix is not a directory"
fi
else
echo "Creating $(pwd)"
$mkdir -p $prefix
check "making the prefix directory: $prefix"
fi
fi
$cd $prefix
check "cannot change to the prefix directory: $prefix"
if [ $clean = yes ]; then
echo "Cleaning: $(pwd)"
$rm -rf *
fi
#
# Using a local RPM database means we do not need to be root to
# perform the build.
#
if [ $local_rpm_database = yes ]; then
echo "Creating private RPM database: $(pwd)/var/lib/rpm"
if [ ! -d /var/lib/rpm ]; then
terminate "no RPM database found on this host"
exit 1
fi
if [ ! -d var/lib ]; then
$mkdir -p var/lib
check "making the local RPM database directory: var/lib"
fi
if [ $clean = yes -o ! -e var/lib/rpmPackages ]; then
echo "Copying RPM database to a local RPM database"
$cp -r /var/lib/rpm var/lib/rpm
check "copying the RPM database to the local database"
fi
fi
#
# Set the path to the new directory.
#
export PATH=$prefix/bin:$PATH
#
# Install the RPM.
#
rpm_installer()
{
local rpm_common=
local rpm_libs=
local rpm_tools=
local r
local rpm_database=$1
shift
local rpm_arch=$1
shift
local rpm_path=$1
shift
#
# Get the names of the rpm files that have been built. This means we
# do not have maintain version info.
#
rpm_names=$(rpmbuild $rpm_database $* --nobuild 2> /dev/null | \
grep -v "debuginfo" | grep "Process" | sed 's/Process.*\: //')
#
# If we have a base place that one first then libs then the tools.
#
for r in $rpm_names
do
if [ $(echo $r | sed 's/.*common.*/yes/') = yes ]; then
rpm_common="$rpm_common $r"
elif [ $(echo $r | sed 's/.*lib.*/yes/') = yes ]; then
rpm_libs="$rpm_libs $r"
elif [ $(echo $r | sed 's/.*sys\-root.*/yes/') = yes ]; then
rpm_libs="$rpm_libs $r"
else
rpm_tools="$rpm_tools $r"
fi
done
for r in $rpm_common $rpm_libs $rpm_tools
do
echo "rpm $rpm_database --force" \
"-i $rpm_path/$rpm_arch/$r.$rpm_arch.rpm"
$rpm $rpm_database --force -i $rpm_path/$rpm_arch/$r.$rpm_arch.rpm
check "installing the $r.$rpm_arch.rpm rpm failed"
done
}
#
# Select the type of arch we have.
#
rpm_arch()
{
if [ $(echo $1 | sed 's/.*api.*/yes/') = yes ]; then
echo "noarch"
elif [ $(echo $1 | sed 's/.*lib.*/yes/') = yes ]; then
echo "noarch"
elif [ $(echo $1 | sed 's/.*auto.*/yes/') = yes ]; then
echo "noarch"
else
echo $2
fi
}
#
# We always build tools for the build host. We need them to
# build the libraries for the target processor.
#
hosts="linux $hosts"
echo "Configuring target: all"
echo "configure --prefix=$prefix $rpm_prefix_arg " \
" --target=all $infos"
$configure --prefix=$prefix $rpm_prefix_arg \
--target=all \
$infos
check "configuring the crossrpms failed"
echo "make"
$make
check "building the rpm spec files failed"
echo "make -C autotools"
$make -C autotools
check "building the rpm spec files failed"
for h in $hosts;
do
#
# Need to translate the build host to an RTEMS host. Create a
# target host (th) and specs directory (sd) variable to handle
# the use of RTEMS.
#
if [ $h = "linux" ]; then
th="linux-gnu"
sd=rtems$version
canadian_cross=no
else
th=$h
sd=$h
canadian_cross=yes
fi
#
# Associate the host to its tool list to get the packages to build.
#
tl=${h}_tool_list
pl=${h}_cpu_list
echo "Native Host Tools: ${!tl} for ${!pl}"
echo "Canadian Cross: $canadian_cross ($t $h)"
for p in ${!pl}
do
pth="$p-pc-$th"
if [ $canadian_cross = yes ]; then
echo "make -C $sd/$p"
$make -C $sd/$p
check "building the rpm spec files failed: $sd/$p"
for s in ${!tl}
do
case $s in
autoconf|automake)
# Hack around the prefix in the spec files for autotools.
ba="-ba $prefix/autotools/$rpm_prefix$s.spec"
;;
*)
ba="-ba $prefix/$sd/$p/$rpm_prefix$pth-$s.spec"
esac
rpmbuild_cmd="$ba --target=$build"
echo "rpmbuild --define '_defaultdocdir $prefix/share/doc' $rpm_database $rpmbuild_cmd"
$rpmbuild --define "_defaultdocdir $prefix/share/doc" $rpm_database $rpmbuild_cmd
check "building the $sd/$p/$rpm_prefix$pth-$s rpm failed"
rpm_installer "$rpm_database" \
$(rpm_arch $rpm_prefix$pth-$s $processor) \
$rpm_topdir/linux/RPMS \
$rpmbuild_cmd
done
fi
done
for t in $targets;
do
for s in ${rtems_tool_list}
do
case $s in
autoconf|automake)
# Hack around the prefix in the spec files for autotools.
ba="-ba $prefix/autotools/$rpm_prefix$s.spec"
;;
*)
ba="-ba $prefix/rtems$version/$t/$rpm_prefix$t-rtems$version-$s.spec"
esac
rpmbuild_cmd="$ba --target=$pth"
if [ $canadian_cross = yes ]; then
ccl=${h}_cc_name
echo "rpmbuild --define '_build $processor-redhat-linux' " \
"--define '_host $pth' " \
"--define '_defaultdocdir $prefix/share/doc' " \
"$rpm_database $rpmbuild_cmd "
$rpmbuild --define "_build $processor-redhat-linux" \
--define "_host $pth" \
--define "_defaultdocdir $prefix/share/doc" \
--define "__cc $p-${!ccl}-$h-gcc" \
$rpm_database $rpmbuild_cmd
check "building host cross target: $rpm_prefix$t-rtems$version-$s"
else
echo "rpmbuild --define '_defaultdocdir $prefix/share/doc' "\
"$rpm_database $rpmbuild_cmd"
$rpmbuild --define "_defaultdocdir $prefix/share/doc" \
$rpm_database $rpmbuild_cmd
check "building host cross target: $rpm_prefix$t-rtems$version-$s"
fi
if [ $canadian_cross != yes ]; then
rpm_installer "$rpm_database" \
$(rpm_arch $rpm_prefix$t-rtems$version-$s $p) \
$rpm_topdir/$h/RPMS \
$rpmbuild_cmd
fi
done
done
done

View File

@@ -1,100 +0,0 @@
#! /bin/sh
# RTEMS Build script.
#
# This script builds the RPM files then the Windows executables.
#
# Note: This file should be placed in crossrpms.
#
command_line="$0 $*"
terminate()
{
echo "error: $*" >&2
exit 1
echo "after"
}
check()
{
if [ $? -ne 0 ]; then
terminate $*
fi
}
debug=
hosts=
prefix=
no_run=
relocate=
source=
targets=
version=
log=build.txt
while [ $# -gt 0 ];
do
case $1 in
-d)
set -x
debug="-d"
;;
-h)
shift
hosts="-h $1"
;;
-l)
shift
log=$1
;;
-n)
no_run="-n"
;;
-p)
shift
prefix="-p $1"
;;
-r)
shift
relocation="-r $1"
;;
-s)
shift
source="-s $1"
;;
-t)
shift
targets="-t $1"
;;
-v)
shift
version="-v $1"
;;
--help)
echo "$0 -dn -h <hosts> -p <prefix> -s <source> -t <targets> -v <version>"
exit 2
;;
*)
terminate "error: invalid option (try --help): $1"
;;
esac
shift
done
echo "$command_line" > $log
scripts=$(dirname $0)
echo "$scripts/build-rpms.sh -i $debug $no_run $prefix $source $targets $hosts $version" >> $log
$scripts/build-rpms.sh -i $debug $no_run $prefix $source $targets $hosts $version 2>&1 | tee -a $log
if [ ${PIPESTATUS[0]} -ne 0 ]; then
terminate "Making the RPM files."
fi
echo "$scripts/build-exes.sh $debug $no_run $prefix $targets $relocation" >> $log
$scripts/build-exes.sh $debug $no_run $prefix $targets $relocation 2>&1 | tee -a $log
if [ ${PIPESTATUS[0]} -ne 0 ]; then
terminate "Making the executable files."
fi
exit 0

View File

@@ -1,5 +0,0 @@
!macro FILE_WRITE_LINE Handle Text
FileWrite ${Handle} `${Text}`
FileWriteByte ${Handle} "13"
FileWriteByte ${Handle} "10"
!macroend

View File

@@ -1,41 +0,0 @@
; GetParameters
; input, none
; output, top of stack (replaces, with e.g. whatever)
; modifies no other variables.
Function GetParameters
Push $R0
Push $R1
Push $R2
Push $R3
StrCpy $R2 1
StrLen $R3 $CMDLINE
;Check for quote or space
StrCpy $R0 $CMDLINE $R2
StrCmp $R0 '"' 0 +3
StrCpy $R1 '"'
Goto loop
StrCpy $R1 " "
loop:
IntOp $R2 $R2 + 1
StrCpy $R0 $CMDLINE 1 $R2
StrCmp $R0 $R1 get
StrCmp $R2 $R3 get
Goto loop
get:
IntOp $R2 $R2 + 1
StrCpy $R0 $CMDLINE 1 $R2
StrCmp $R0 " " get
StrCpy $R0 $CMDLINE "" $R2
Pop $R3
Pop $R2
Pop $R1
Exch $R0
FunctionEnd

View File

@@ -1,20 +0,0 @@
; RTEMS Tools Installer.
;
; Copyright Chris Johns (chrisj@rtems.org)
;
Function CheckInstance
Push $R0
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "RTEMSTools") i .r1 ?e'
Pop $R0
!ifdef COMMON_FILES
StrCmp $R0 0 +3
MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running."
Abort
!else
StrCmp $R0 0 0 +3
MessageBox MB_OK|MB_ICONEXCLAMATION "This installer should not be run directly. Please run the rtems${PRODUCT_VERSION}-tools-${RTEMS_BUILD_VERSION}.exe installer."
Abort
!endif
Pop $R0
FunctionEnd

View File

@@ -1,66 +0,0 @@
; RTEMS Tools Installer.
;
; Copyright Chris Johns (chrisj@rtems.org)
;
Function MinGWPath
Push $R0
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\MinGW" "InstallLocation"
Exch $R0
FunctionEnd
Function MinGWCheckFile
Exch $R0
DetailPrint "Checking for MinGW $R0."
IfFileExists "$R0" +5 0
DetailPrint "Could not find $R0."
Exch $R0
Return
StrCpy $R0 "ok"
Exch $R0
FunctionEnd
Function MinGWCheckExes
Exch $R0
Push $R1
StrCpy $R1 "$R0\bin\gcc.exe"
Push $R1
Call MinGWCheckFile
Pop $R1
StrCmp "ok" 0 Done
StrCpy $R1 "$R0\bin\as.exe"
Push $R1
Call MinGWCheckFile
Pop $R1
StrCmp "ok" 0 Done
StrCpy $R1 "$R0\bin\ld.exe"
Push $R1
Call MinGWCheckFile
Pop $R1
Done:
StrCpy $R0 $R1
Pop $R1
Exch $R0
FunctionEnd
Function MinGWDetect
Push $R0
Push $R1
StrCpy $R1 "c:\mingw"
DetailPrint "Checking MinGW default install path: $R1"
Push $R1
Call MinGWCheckExes
Pop $R0
StrCmp $R0 "ok" Found
DetailPrint "Checking Registry for MinGW Installed Path"
Call MinGWPath
Pop $R0
ifErrors 0 +3
MessageBox MB_OK "MinGW Not Installed. Please install MinGW from http://www.mingw.org/"
Abort
Found:
StrCpy $R0 $R1
DetailPrint "MinGW Found: $R0"
Pop $R1
Exch $R0
FunctionEnd

View File

@@ -1,148 +0,0 @@
; RTEMS Tools Installer.
;
; Copyright Chris Johns (chrisj@rtems.org)
;
!include "${RTEMS_SOURCE}/strslash.nsi"
Function MsysPath
Push $R0
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\MSYS-1.0_is1" "Inno Setup: App Path"
Exch $R0
FunctionEnd
Function MsysDTKPath
Push $R0
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\MSYS-DTK_is1" "Inno Setup: App Path"
Exch $R0
FunctionEnd
Function MSYSCheckExes
Exch $R0
DetailPrint "Checking for MSYS $R0\bin\sh.exe."
IfFileExists "$R0\bin\sh.exe" +5 0
DetailPrint "Could not find $R0\bin\sh.exe."
StrCpy $R0 "$R0\bin\sh.exe"
Exch $R0
Return
DetailPrint "Checking for MSYS $R0\bin\m4.exe."
IfFileExists "$R0\bin\m4.exe" +5 0
DetailPrint "Could not find $R0\bin\m4.exe."
StrCpy $R0 "$R0\bin\m4.exe"
Exch $R0
Return
DetailPrint "Checking for MSYS $R0\bin\perl.exe."
IfFileExists "$R0\bin\perl.exe" +5 0
DetailPrint "Could not find $R0\bin\perl.exe."
StrCpy $R0 "$R0\bin\perl.exe"
Exch $R0
Return
StrCpy $R0 "ok"
Exch $R0
FunctionEnd
Function MSYSDetect
Push $R0
Push $R1
StrCpy $R1 "c:\msys\1.0"
DetailPrint "Checking MSYS default install path: $R1"
Push $R1
Call MSYSCheckExes
Pop $R0
StrCmp $R0 "ok" Found
DetailPrint "Checking Registry for MSYS Installed Path"
Call MsysPath
Pop $R0
ifErrors 0 +3
MessageBox MB_OK "MSYS Not Installed. Please install MSYS from http://www.mingw.org/"
Abort
DetailPrint "Checking Registry for MSYS DTK Installed Path"
Call MsysDTKPath
Pop $R1
ifErrors 0 +3
MessageBox MB_OK "MSYS DTK Not Installed. Please install MSYS DTK from http://www.mingw.org/"
Abort
StrCmp $R0 $R1 +3 0
MessageBox MB_OK "MSYS and MSYS DTK installed to different paths. This is not supported."
Abort
Push $R0
Call MSYSCheckExes
Pop $R0
StrCmp $R0 "ok" Found
MessageBox MB_OK "MSYS Executable '$R0' not found. Please install from http://www.mingw.org/"
Abort
Found:
StrCpy $R0 $R1
DetailPrint "MSYS Found: $R0"
Pop $R1
Exch $R0
FunctionEnd
Function MSYSDetectSilent
Push $R0
Push $R1
StrCpy $R1 "c:\msys\1.0"
DetailPrint "Checking MSYS default install path: $R1"
Push $R1
Call MSYSCheckExes
Pop $R0
StrCmp $R0 "ok" Done
DetailPrint "Checking Registry for MSYS Installed Path"
Call MsysPath
Pop $R0
ifErrors 0 +3
StrCpy $R1 "not-found"
Goto Done
DetailPrint "Checking Registry for MSYS DTK Installed Path"
Call MsysDTKPath
Pop $R1
ifErrors 0 +3
StrCpy $R1 "not-found"
Goto Done
StrCmp $R0 $R1 +3 0
StrCpy $R1 "not-found"
Goto Done
Push $R0
Call MSYSCheckExes
Pop $R0
StrCmp $R0 "ok" Done
StrCpy $R1 "not-found"
Goto Done
Done:
StrCpy $R0 $R1
DetailPrint "MSYS Result: $R0"
Pop $R1
Exch $R0
FunctionEnd
Function MSYSFstabUpdate
Call MSYSDetectSilent
Pop $R0
Push $R0
Push $INSTDIR
Push '\\'
Pop $R0
Call StrSlash
Pop $R1
Pop $R0
DetailPrint "Setting MSYS fstab: $R1 -> /opt/rtems-${PRODUCT_VERSION}"
StrCpy $R1 "$R1 /opt/rtems-${PRODUCT_VERSION}$\n"
FileOpen $9 "$R0\etc\fstab" a
ifErrors 0 +3
MessageBox MB_OK "Cannot open $R0\etc\fstab. MSYS mount point not added."
Goto Close
FileSeek $9 0 SET
ReadLoop:
FileRead $9 $R2
ifErrors Append
StrCmp $R1 $R2 Close ReadLoop
Append:
FileSeek $9 0 END
StrCpy $R2 $R2 1 -1
StrCmp $R2 "$\n" +2 0
FileWrite $9 "$\n"
FileWrite $9 $R1
Close:
FileClose $9
ClearErrors
FunctionEnd

View File

@@ -1,51 +0,0 @@
; RTEMS Tools Installer.
;
; Copyright Chris Johns (chrisj@rtems.org)
;
!ifndef OPTIONS_DEFINED
!define OPTIONS_DEFINED
!include "${RTEMS_SOURCE}/strstr.nsi"
!include "${RTEMS_SOURCE}/getparameters.nsi"
Var "SilentOption"
Var "DebugOption"
Var "DebugScriptOption"
Function CheckCmdLineOption
Exch $R0
Call GetParameters
Push $R0
Call StrStr
Exch $R1
StrCmp $R1 "" 0 +2
StrCpy $R0 "not-found"
Pop $R1
Exch $R0
FunctionEnd
Function CheckSilent
StrCpy $SilentOption ""
Push $R0
Push "/SILENT"
Call CheckCmdLineOption
Pop $R0
StrCmp $R0 "not-found" +2 0
StrCpy $SilentOption "/S"
Pop $R0
FunctionEnd
Function CheckDebug
StrCpy $DebugOption ""
Push $R0
Push "/DEBUG"
Call CheckCmdLineOption
Pop $R0
StrCmp $R0 "not-found" +3 0
StrCpy $DebugScriptOption "-d"
StrCpy $DebugOption "/DEBUG"
Pop $R0
FunctionEnd
!endif

View File

@@ -1,319 +0,0 @@
; RTEMS Autotools Installer.
;
; Copyright Chris Johns (chrisj@rtems.org)
;
;!define EMPTY_INSTALLER
!define PRODUCT_NAME "RTEMS Autotools"
!define PRODUCT_VERSION ${RTEMS_VERSION}
!define PRODUCT_PUBLISHER "RTEM Project Team"
!define PRODUCT_WEB_SITE "http://www.rtems.org/"
!define PRODUCT_TITLE "${PRODUCT_NAME} ${PRODUCT_VERSION} (${RTEMS_TARGET})"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
; MUI 1.66 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\win-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\win-uninstall.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${RTEMS_LOGO}"
!define MUI_COMPONENTSPAGE_SMALLDESC
; Start Menu Support
!include "${RTEMS_SOURCE}/sm-dummy.nsi"
var smfolder
!define MUI_STARTMENUPAGE_DISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "RTEMS ${PRODUCT_VERSION}"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU_DUMMY Application $smfolder
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
; Language files
!insertmacro MUI_LANGUAGE "English"
; Reserve files
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; MUI end ------
ReserveFile "rtems.ini"
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
Name "${PRODUCT_NAME} ${PRODUCT_VERSION} (${RTEMS_TARGET})"
OutFile "${RTEMS_BINARY}/rtems${PRODUCT_VERSION}-tools-${RTEMS_TARGET}-${RTEMS_BUILD_VERSION}.exe"
InstallDir "C:\opt\rtems-${PRODUCT_VERSION}"
ShowInstDetails show
ShowUnInstDetails show
BrandingText "RTEMS ${RTEMS_TARGET} Tools v${PRODUCT_VERSION}"
AllowRootDirInstall false
AutoCloseWindow true
CRCCheck force
!include "${RTEMS_SOURCE}/instance-check.nsi"
!include "${RTEMS_SOURCE}/mingw-path.nsi"
!include "${RTEMS_SOURCE}/msys-path.nsi"
!include "${RTEMS_SOURCE}/options.nsi"
!include "${RTEMS_SOURCE}/filewrite.nsi"
Section "RTEMS ${RTEMS_TARGET} Tools" SecTools
SetDetailsView show
AddSize ${RTEMS_TOOLS_SIZE}
Call MSYSFstabUpdate
/*
* Detect if MSYS is installed.
*/
Call MSYSDetect
Pop $9
StrCmp $9 "not-found" 0 +3
MessageBox MB_OK "Could not find a valid MSYS. Please install from http://www.mingw.org/"
Abort
SetOutPath "$INSTDIR\Uninstall"
SetOutPath "$INSTDIR\Packages\Build"
SetOutPath "$INSTDIR\Packages\Build"
SetOutPath "$INSTDIR\Packages\Source"
File "${RTEMS_SOURCE}/build-autotools.sh"
File "${RTEMS_SOURCE}/ba-wrap.sh"
File "${RTEMS_PACKAGE_SOURCE}/${RTEMS_AUTOCONF_SOURCE}"
File "${RTEMS_SOURCE}/autoconf.def"
File "${RTEMS_SOURCE}/automake.def"
!insertmacro RTEMS_AUTOCONF_PATCHES
File "${RTEMS_PACKAGE_SOURCE}/${RTEMS_AUTOMAKE_SOURCE}"
!insertmacro RTEMS_AUTOMAKE_PATCHES
Delete "$INSTDIR\Packages\Source\at-log.txt"
/*
* Need to fix the slashes when using a Unix type shell.
*/
Push "$INSTDIR\Packages\Source\ba-wrap.sh"
Push '\\'
Pop $R0
Call StrSlash
Pop $R1
Push "$INSTDIR\Packages\Build"
Push '\\'
Pop $R0
Call StrSlash
Pop $R2
/*
* Build Autoconf.
*/
Push "$INSTDIR\Packages\Source\autoconf.def"
Push '\\'
Pop $R0
Call StrSlash
Pop $R0
DetailPrint "Building automake. Command window closes automatically. Debug:$DebugScriptOption"
ExecWait '"$9\bin\sh" --login -c "$R1 $DebugScriptOption -p /opt/rtems-${PRODUCT_VERSION} -b $R2 -c $R0"' $0
BringToFront
IntCmp $0 0 +3
MessageBox MB_OK "Autoconf build failed. See $INSTDIR\Packages\Source\at-log.txt"
Abort
BringToFront
Push "$INSTDIR\Uninstall\${RTEMS_AUTOCONF}-files"
call InstallFilesFromFile
/*
* Build Automake.
*/
Push "$INSTDIR\Packages\Source\automake.def"
Push '\\'
Pop $R0
Call StrSlash
Pop $R0
DetailPrint "Building automake. Command window closes automatically. Debug:$DebugScriptOption"
ExecWait '"$9\bin\sh" --login -c "$R1 $DebugScriptOption -p /opt/rtems-${PRODUCT_VERSION} -b $R2 -c $R0"' $0
BringToFront
IntCmp $0 0 +3
MessageBox MB_OK "Automake build failed. See $INSTDIR\Packages\Source\at-log.txt"
Abort
BringToFront
Push "$INSTDIR\Uninstall\${RTEMS_AUTOMAKE}-files"
call InstallFilesFromFile
DetailPrint "Removing Build directory"
RMDir /r "$INSTDIR\Packages\Build"
SectionEnd
Function .onInit
;Check if we are the correct instance for our mode.
Call CheckInstance
;Handle the Command line options
Call CheckSilent
Call CheckDebug
;See if MinGW and MSYS are installed
Call MinGWDetect
Call MSYSDetect
FunctionEnd
Var FileList
Function InstallFilesFromFile
Pop $R6
Push $R7
Push $R8
Push $R9
DetailPrint "Installing file list: $R6"
SetFileAttributes "$R6" NORMAL
FileOpen $FileList "$R6" r
IfErrors 0 +3
MessageBox MB_OK "Internal error reading file list (0:$R6)."
Abort
ReadLoop:
FileRead $FileList $R7
IfErrors Done
StrCpy $R7 $R7 -1 # has a \n only at the end
StrCpy $R8 $R7
StrCpy $R7 $R7 1 # first character on the line
StrCpy $R8 $R8 256 2
StrCmpS $R7 "D" ReadLoop
StrCmpS $R7 "b" 0 +3
StrCpy $R9 $R8
Goto ReadLoop
StrCmpS $R7 "d" 0 +3
CreateDirectory "$INSTDIR\$R8"
Goto ReadLoop
StrCmpS $R7 "f" 0 +3
CopyFiles /SILENT "$INSTDIR\Packages\Build\$R9\$R8" "$INSTDIR\$R8"
Goto ReadLoop
MessageBox MB_OK "Internal error installing package (2:$R6)."
Abort
Done:
FileClose $FileList
ClearErrors
Pop $R9
Pop $R8
Pop $R7
FunctionEnd
Function un.RemoveFilesFromFile
; Two passes, one to delete files then the directories
; This is due to the order in the *-files list. Plus
; RMDir seems to stuff things up (maybe a NSIS bug!)
Pop $R6
Push $R7
Push $R8
Push $R9
DetailPrint "Delete file list: $R6"
SetFileAttributes "$R6" NORMAL
FileOpen $FileList "$R6" r
IfErrors 0 +3
MessageBox MB_OK "Internal error reading file list (0:$R6)."
Abort
ReadLoop:
FileRead $FileList $R7
IfErrors Pass2
StrCpy $R7 $R7 -1 # has a \n only at the end
StrCpy $R8 $R7
StrCpy $R7 $R7 1 # first character on the line
StrCpy $R8 $R8 256 2
StrCmp $R7 "b" ReadLoop
StrCmp $R7 "d" ReadLoop
StrCmp $R7 "D" ReadLoop
StrCmp $R7 "f" 0 +3
Delete "$INSTDIR\$R8"
Goto ReadLoop
MessageBox MB_OK "Internal error removing package (2:$R6)."
Abort
Pass2:
ClearErrors
FileSeek $FileList 0 SET
ReadLoop2:
FileRead $FileList $R7
IfErrors Done
StrCpy $R7 $R7 -1 # has a \n only at the end
StrCpy $R8 $R7
StrCpy $R7 $R7 1 # first character on the line
StrCpy $R8 $R8 256 2
StrCmpS $R7 "b" ReadLoop2
StrCmpS $R7 "d" ReadLoop2
StrCmpS $R7 "f" ReadLoop2
StrCmpS $R7 "D" 0 Fail
ifFileExists "$INSTDIR\$R8\*.*" 0 ReadLoop2
RMDir "$INSTDIR\$R8" #is dir
Delete "$INSTDIR\$R8"
ClearErrors
Goto ReadLoop2
Fail:
MessageBox MB_OK "Internal error removing package (2:$R6)."
Abort
Done:
FileClose $FileList
ClearErrors
Delete $R6
Pop $R9
Pop $R8
Pop $R7
FunctionEnd
Section -Post
StrCpy $R0 "$INSTDIR\rtems${PRODUCT_VERSION}-${RTEMS_BUILD_VERSION}-tools-${RTEMS_TARGET}-uninst.exe"
StrCpy $R1 "RTEMS ${RTEMS_TARGET} Tools.lnk"
WriteUninstaller "$R0"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}" \
"DisplayName" "$(^Name)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}" \
"UninstallString" "$R0"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}" \
"DisplayVersion" "${PRODUCT_VERSION} Build-${RTEMS_BUILD_VERSION}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}" \
"URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}" \
"Publisher" "${PRODUCT_PUBLISHER}"
!insertmacro MUI_STARTMENU_GETFOLDER "Application" $R2
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$R2"
CreateDirectory "$SMPROGRAMS\$R2\Uninstall"
CreateShortCut "$SMPROGRAMS\$R2\Uninstall\$R1" "$R0"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section Uninstall
SetDetailsView show
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}"
DetailPrint "Delete the installed files"
Push "$INSTDIR\Uninstall\${RTEMS_AUTOCONF}-files"
call un.RemoveFilesFromFile
Push "$INSTDIR\Uninstall\${RTEMS_AUTOMAKE}-files"
call un.RemoveFilesFromFile
RMDir "$INSTDIR\Uninstall"
Delete "$INSTDIR\Packages\Source\build-autotools.sh"
Delete "$INSTDIR\Packages\Source\ba-wrap.sh"
Delete "$INSTDIR\Packages\Source\${RTEMS_AUTOCONF_SOURCE}"
Delete "$INSTDIR\Packages\Source\${RTEMS_AUTOMAKE_SOURCE}"
Delete "$INSTDIR\Packages\Source\autoconf.def"
Delete "$INSTDIR\Packages\Source\automake.def"
Delete "$INSTDIR\Packages\Source\at-log.txt"
!insertmacro RTEMS_DELETE_AUTOCONF_PATCHES
!insertmacro RTEMS_DELETE_AUTOMAKE_PATCHES
RMDir "$INSTDIR\Packages\Source"
RMDir "$INSTDIR\Packages\Build"
!insertmacro MUI_STARTMENU_GETFOLDER "Application" $smfolder
Delete "$SMPROGRAMS\$smfolder\Uninstall\RTEMS ${RTEMS_TARGET} Tools.lnk"
Delete $INSTDIR\rtems${PRODUCT_VERSION}-${RTEMS_BUILD_VERSION}-tools-${RTEMS_TARGET}-uninst.exe
RMDir "$INSTDIR"
DetailPrint "All done."
SetAutoClose true
SectionEnd

View File

@@ -1,181 +0,0 @@
{\rtf1\ansi\deff0\adeflang1025
{\fonttbl{\f0\froman\fprq2\fcharset0 Nimbus Roman No9 L;}{\f1\froman\fprq2\fcharset0 Nimbus Roman No9 L;}{\f2\fswiss\fprq2\fcharset0 Bitstream Vera Sans;}{\f3\fnil\fprq2\fcharset0 Bitstream Vera Sans;}{\f4\fnil\fprq2\fcharset0 Luxi Sans;}{\f5\fnil\fprq0\fcharset0 Luxi Sans;}}
{\colortbl;\red0\green0\blue0;\red128\green128\blue128;}
{\stylesheet{\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081\snext1 Normal;}
{\s2\sb240\sa120\keepn\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\afs28\lang255\ltrch\dbch\af4\langfe255\hich\f2\fs28\lang3081\loch\f2\fs28\lang3081\sbasedon1\snext3 Heading;}
{\s3\sa120\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081\sbasedon1\snext3 Body Text;}
{\s4\sa120\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af5\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081\sbasedon3\snext4 List;}
{\s5\sb120\sa120\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af5\afs24\lang255\ai\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\i\loch\f0\fs24\lang3081\i\sbasedon1\snext5 caption;}
{\s6\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af5\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081\sbasedon1\snext6 Index;}
{\*\cs8\cf0\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 Numbering Symbols;}
}{\*\listtable{\list\listtemplateid1
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'00.;}{\levelnumbers\'01;}\fi-360\li120}
{\listlevel\levelnfc0\leveljc0\levelstartat0\levelfollow0{\leveltext \'02\'01.;}{\levelnumbers\'01;}\fi-283\li566}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'02.;}{\levelnumbers\'01;}\fi-360\li1560}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'03.;}{\levelnumbers\'01;}\fi-360\li2280}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'04.;}{\levelnumbers\'01;}\fi-360\li3000}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'05.;}{\levelnumbers\'01;}\fi-360\li3720}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'06.;}{\levelnumbers\'01;}\fi-360\li4440}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'07.;}{\levelnumbers\'01;}\fi-360\li5160}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'08.;}{\levelnumbers\'01;}\fi-360\li5880}
{\*\soutlvl{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'09.;}{\levelnumbers\'01;}\fi-360\li6600}}\listid1}
{\list\listtemplateid2
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'00.;}{\levelnumbers\'01;}\fi-283\li566}
{\listlevel\levelnfc4\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'01);}{\levelnumbers\'01;}\fi-360\li1080}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'02.;}{\levelnumbers\'01;}\fi-360\li1440}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'03.;}{\levelnumbers\'01;}\fi-360\li1800}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'04.;}{\levelnumbers\'01;}\fi-360\li2160}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'05.;}{\levelnumbers\'01;}\fi-360\li2520}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'06.;}{\levelnumbers\'01;}\fi-360\li2880}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'07.;}{\levelnumbers\'01;}\fi-360\li3240}
{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'08.;}{\levelnumbers\'01;}\fi-360\li3600}
{\*\soutlvl{\listlevel\levelnfc0\leveljc0\levelstartat1\levelfollow0{\leveltext \'02\'09.;}{\levelnumbers\'01;}\fi-360\li3960}}\listid2}
}{\listoverridetable{\listoverride\listid1\listoverridecount0\ls0}{\listoverride\listid2\listoverridecount0\ls1}}
{\info{\creatim\yr2006\mo7\dy21\hr16\min18}{\revtim\yr1601\mo1\dy1\hr0\min0}{\printim\yr1601\mo1\dy1\hr0\min0}{\comment StarWriter}{\vern6800}}\deftab709
{\*\pgdsctbl
{\pgdsc0\pgdscuse195\pgwsxn11905\pghsxn16837\marglsxn1134\margrsxn3886\margtsxn1134\margbsxn1134\pgdscnxt0 Standard;}}
\paperh16837\paperw11905\margl1134\margr3886\margt1134\margb1134\sectd\sbknone\pgwsxn11905\pghsxn16837\marglsxn1134\margrsxn3886\margtsxn1134\margbsxn1134\ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc
\pard\plain \ltrpar\s1\cf0\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ab\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\b\loch\f0\fs21\lang3081\b {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b GNU GENERAL PUBLIC LICENSE}
\par \pard\plain \ltrpar\s1\cf0\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Version 2, June 1991}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\li585\ri-30\lin585\rin-30\fi0\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Copyright (C) 1989, 1991 Free Software Foundation, Inc.\line 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA\line Everyone is permitted to copy and distribute verbatim copies\line of this license document, but changing it is not allowed.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ab\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\b\loch\f0\fs21\lang3081\b {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b Preamble}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all
its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public Licens
e instead.) You can apply it to your programs, too.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive sou
rce code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you m
odify it.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms s
o they know their rights.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they hav
e is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made
it clear that any patent must be licensed for everyone's free use or not licensed at all.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 The precise terms and conditions for copying, distribution and modification follow.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ab\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\b\loch\f0\fs21\lang3081\b {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b GNU GENERAL PUBLIC LICENSE\line TERMS AND CONDITIONS FOR COPYING,\line DISTRIBUTION AND MODIFICATION}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 0.\tab}\ilvl1 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls0\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work bas
ed on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translat
ion is included without limitation in the term "modification".) Each licensee is addressed as "you".\line \line Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program
is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 1.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all th
e notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.\line \line You may charge a fee for the physical act of transferring a copy, and you may at your opti
on offer warranty protection in exchange for a fee.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 2.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:\line }
\par \pard\plain {\listtext\pard\plain \li1080\ri0\lin1080\rin0\fi-360\sa113\fs21\fs21\fs21\qj a)\tab}\ilvl1 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li1080\ri0\lin1080\rin0\fi-360\sa113\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.}
\par \pard\plain {\listtext\pard\plain \li1080\ri0\lin1080\rin0\fi-360\sa113\fs21\fs21\fs21\qj b)\tab}\ilvl1 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li1080\ri0\lin1080\rin0\fi-360\sa113\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.}
\par \pard\plain {\listtext\pard\plain \li1080\ri0\lin1080\rin0\fi-360\fs21\fs21\fs21\qj c)\tab}\ilvl1 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li1080\ri0\lin1080\rin0\fi-360\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice th
at there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does no
t normally print such an announcement, your work based on the Program is not required to print an announcement.)}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj \tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply
to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for oth
er licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.\line \line Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the r
ight to control the distribution of derivative or collective works based on the Program.\line \line In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution
medium does not bring the other work under the scope of this License.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 3.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:\line }
\par \pard\plain {\listtext\pard\plain \li1080\ri0\lin1080\rin0\fi-360\sa113\fs21\fs21\fs21\qj a)\tab}\ilvl1 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li1080\ri0\lin1080\rin0\fi-360\sa113\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,}
\par \pard\plain {\listtext\pard\plain \li1080\ri0\lin1080\rin0\fi-360\sa113\fs21\fs21\fs21\qj b)\tab}\ilvl1 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li1080\ri0\lin1080\rin0\fi-360\sa113\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distribut
ed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,}
\par \pard\plain {\listtext\pard\plain \li1080\ri0\lin1080\rin0\fi-360\fs21\fs21\fs21\qj c)\tab}\ilvl1 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li1080\ri0\lin1080\rin0\fi-360\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an of
fer, in accord with Subsection b above.)\line }
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj \tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the sc
ripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler
, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.\line \line If distribution of executable or object code is made by offering access to copy from a designated place, then offering equi
valent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.\line }
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 4.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this L
icense. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.\line }
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 5.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. The
refore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.\line }
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 6.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any fu
rther restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.\line }
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 7.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this Lice
nse, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at
all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely
from distribution of the Program.\line \line If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.\line \line
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, wh
ich is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he o
r she is willing to distribute software through any other system and a licensee cannot impose that choice.\line \line This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.\line }
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 8.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitatio
n excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.\line }
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 9.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\line \line Each v
ersion is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later versio
n published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.\line }
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 10.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software
Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.\line }
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\b\fs21\b\fs21\b\qc \tab}\ilvl0 \ltrpar\s1\cf0\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ab\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\b\loch\f0\fs21\lang3081\b {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b NO WARRANTY}
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21 \tab}\ilvl0 \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 11.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANT
Y OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PR
OVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\line }
\par \pard\plain {\listtext\pard\plain \li566\ri0\lin566\rin0\fi-283\fs21\fs21\fs21\qj 12.\tab}\ilvl0 \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\ls1\li566\ri0\lin566\rin0\fi-283\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER P
ROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qc{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ab\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\b\loch\f0\fs21\lang3081\b {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b END OF TERMS AND CONDITIONS}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Appendix: How to Apply These Terms to Your New Programs}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the
full notice is found. }
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 <one line to give the program's name and a brief idea of what it does.>}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Copyright (C) 19yy <name of author>}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 This program is free software; you can redistribute it and/or modify}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 it under the terms of the GNU General Public License as published by}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 the Free Software Foundation; either version 2 of the License, or}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 (at your option) any later version.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 This program is distributed in the hope that it will be useful,}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 but WITHOUT ANY WARRANTY; without even the implied warranty of}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 GNU General Public License for more details.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 You should have received a copy of the GNU General Public License}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 along with this program; if not, write to the Free Software}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Also add information on how to contact you by electronic and paper mail.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 If the program is interactive, make it output a short notice like this when it starts in an interactive mode:}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Gnomovision version 69, Copyright (C) 19yy name of author}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Gnomovision comes with ABSOLUTELY NO WARRANTY; }
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 for details type `show w'.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 This is free software, and you are welcome to redistribute it}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 under certain conditions; type `show c' for details.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whate
ver suits your program.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Yoyodyne, Inc., hereby disclaims all copyright interest in the program}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 `Gnomovision' (which makes passes at compilers) written by James Hacker.}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 <signature of Ty Coon>, 1 April 1989}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081 {\rtlch \ltrch\loch }{\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 Ty Coon, President of Vice}
\par \pard\plain \ltrpar\s1\cf0{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs24\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs24\lang3081\loch\f0\fs24\lang3081
\par \pard\plain \ltrpar\s1\cf0\qj{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\rtlch\af4\afs21\lang255\ltrch\dbch\af3\langfe255\hich\f0\fs21\lang3081\loch\f0\fs21\lang3081 {\rtlch \ltrch\loch\f0\fs21\lang3081\i0\b0 This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you wa
nt to do, use the GNU Library General Public License instead of this License.}
\par }

View File

@@ -1,338 +0,0 @@
; RTEMS Tools Installer.
;
; Copyright Chris Johns (chrisj@rtems.org)
;
;!define EMPTY_INSTALLER
!define PRODUCT_NAME "RTEMS Tools"
!define PRODUCT_VERSION ${RTEMS_VERSION}
!define PRODUCT_PUBLISHER "RTEMS Project Team"
!define PRODUCT_WEB_SITE "http://www.rtems.org/"
!ifdef COMMON_FILES
!define PRODUCT_TITLE "${PRODUCT_NAME} ${PRODUCT_VERSION} (Build ${RTEMS_BUILD_VERSION})"
!else
!define PRODUCT_TITLE "${PRODUCT_NAME} ${PRODUCT_VERSION} (${RTEMS_TARGET})"
!endif
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
; MUI 1.66 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_FUNCTION_GUIINIT
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\win-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\win-uninstall.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${RTEMS_LOGO}"
!define MUI_COMPONENTSPAGE_SMALLDESC
!ifdef COMMON_FILES
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; Details of what will happen.
Page custom RTEMSMessage
; License page
!insertmacro MUI_PAGE_LICENSE "${RTEMS_LICENSE_FILE}"
; Components page
!insertmacro MUI_PAGE_COMPONENTS
; Directory page
!define MUI_PAGE_HEADER_SUBTEXT "Choose the folder in which to install the RTEMS Tools."
!define MUI_DIRECTORYPAGE_TEXT_TOP "${PRODUCT_NAME} will install RTEMS Tools in the following directory. To install in a different folder click Browse and select another folder. Click Next to continue."
!insertmacro MUI_PAGE_DIRECTORY
!endif
; Start menu page
!ifndef COMMON_FILES
!include "${RTEMS_SOURCE}/sm-dummy.nsi"
!endif
var smfolder
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "RTEMS ${PRODUCT_VERSION}"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!ifdef COMMON_FILES
!insertmacro MUI_PAGE_STARTMENU Application $smfolder
!else
!insertmacro MUI_PAGE_STARTMENU_DUMMY Application $smfolder
!endif
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
!ifdef COMMON_FILES
; Finish page
!insertmacro MUI_PAGE_FINISH
!endif
; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
; Language files
!insertmacro MUI_LANGUAGE "English"
; Reserve files
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; MUI end ------
ReserveFile "rtems.ini"
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
!ifdef COMMON_FILES
Name "${PRODUCT_NAME} ${PRODUCT_VERSION} (Build ${RTEMS_BUILD_VERSION})"
OutFile "${RTEMS_BINARY}/rtems${PRODUCT_VERSION}-tools-${RTEMS_BUILD_VERSION}.exe"
BrandingText "RTEMS Tools v${PRODUCT_VERSION}"
AutoCloseWindow false
!else
Name "${PRODUCT_NAME} ${PRODUCT_VERSION} (${RTEMS_TARGET})"
OutFile "${RTEMS_BINARY}/${RTEMS_OUTFILE}"
BrandingText "RTEMS ${RTEMS_TARGET} Tools v${PRODUCT_VERSION}"
AutoCloseWindow true
!endif
InstallDir "C:\opt\rtems-${PRODUCT_VERSION}"
ShowInstDetails show
ShowUnInstDetails show
AllowRootDirInstall false
CRCCheck force
!include "${RTEMS_SOURCE}/instance-check.nsi"
!include "${RTEMS_SOURCE}/msys-path.nsi"
!include "${RTEMS_SOURCE}/options.nsi"
!include "${RTEMS_SOURCE}/filewrite.nsi"
Section -SecFiles
AddSize ${RTEMS_TOOLS_SIZE}
!insertmacro RTEMS_INSTALL_FILES
SectionEnd
!ifdef COMMON_FILES
Section -SecCommon
SetOutPath "$INSTDIR"
File "${RTEMS_SOURCE}/AUTHORS"
File "${RTEMS_SOURCE}/COPYING"
File "${RTEMS_SOURCE}/README"
SectionEnd
!endif
Function .onInit
;Check if we are the correct instance for our mode.
Call CheckInstance
;Extract InstallOptions INI files
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "rtems.ini"
;Handle the Command line options
Call CheckSilent
Call CheckDebug
Call MSYSFstabUpdate
FunctionEnd
Function RTEMSMessage
!insertmacro MUI_HEADER_TEXT \
"RTEMS Tools (Build ${RTEMS_BUILD_VERSION})" \
"A tool set for the RTEMS operating system."
;Display the Install Options dialog
Push $R0
Push $R1
Push $R2
InstallOptions::initDialog /NOUNLOAD "$PLUGINSDIR\rtems.ini"
Pop $R0
GetDlgItem $R1 $R0 1200 ;1200 + Field number - 1
;$R1 contains the HWND of the first field
CreateFont $R2 "Tahoma" "8" "300"
SendMessage $R1 ${WM_SETFONT} $R2 0
GetDlgItem $R1 $R0 1201 ;1200 + Field number - 1
;$R1 contains the HWND of the first field
CreateFont $R2 "Tahoma" "12" "700"
SendMessage $R1 ${WM_SETFONT} $R2 0
GetDlgItem $R1 $R0 1202 ;1200 + Field number - 1
;$R1 contains the HWND of the first field
CreateFont $R2 "Tahoma" "8" "300"
SendMessage $R1 ${WM_SETFONT} $R2 0
GetDlgItem $R1 $R0 1203 ;1200 + Field number - 1
;$R1 contains the HWND of the first field
CreateFont $R2 "Tahoma" "8" "300"
SendMessage $R1 ${WM_SETFONT} $R2 0
GetDlgItem $R1 $R0 1204 ;1200 + Field number - 1
;$R1 contains the HWND of the first field
CreateFont $R2 "Tahoma" "8" "300"
SendMessage $R1 ${WM_SETFONT} $R2 0
GetDlgItem $R1 $R0 1205 ;1200 + Field number - 1
;$R1 contains the HWND of the first field
CreateFont $R2 "Tahoma" "8" "300"
SendMessage $R1 ${WM_SETFONT} $R2 0
GetDlgItem $R1 $R0 1206 ;1200 + Field number - 1
;$R1 contains the HWND of the first field
CreateFont $R2 "Tahoma" "8" "300"
SendMessage $R1 ${WM_SETFONT} $R2 0
InstallOptions::show
Pop $R0
Pop $R2
Pop $R1
Pop $R0
FunctionEnd
!ifdef COMMON_FILES
Section -BatchFiles
FileOpen $9 $INSTDIR\rtems-env.bat w
!insertmacro FILE_WRITE_LINE $9 "@echo off"
!insertmacro FILE_WRITE_LINE $9 "rem RTEMS batch file: ${RTEMS_VERSION}-${RTEMS_BUILD_VERSION}"
!insertmacro FILE_WRITE_LINE $9 "set PATH=$INSTDIR\bin;c:\mingw\bin;c:\msys\1.0\bin;%PATH%"
!insertmacro FILE_WRITE_LINE $9 "set PROMPT=RTEMS $$P$$G"
!insertmacro FILE_WRITE_LINE $9 "If $\"x%OS%x$\" == $\"xWindows_NTx$\" Goto WinNT_Title"
!insertmacro FILE_WRITE_LINE $9 "doskey > Nul"
!insertmacro FILE_WRITE_LINE $9 "goto Finished"
!insertmacro FILE_WRITE_LINE $9 ":WinNT_Title"
!insertmacro FILE_WRITE_LINE $9 "Title RTEMS ${RTEMS_VERSION}-${RTEMS_BUILD_VERSION}"
!insertmacro FILE_WRITE_LINE $9 ":Finished"
FileClose $9
FileOpen $9 $INSTDIR\rtems.bat w
!insertmacro FILE_WRITE_LINE $9 "@echo off"
!insertmacro FILE_WRITE_LINE $9 "rem RTEMS batch file: ${RTEMS_VERSION}-${RTEMS_BUILD_VERSION}"
!insertmacro FILE_WRITE_LINE $9 "If $\"x%OS%x$\" == $\"xWindows_NTx$\" Goto WinNT"
!insertmacro FILE_WRITE_LINE $9 "start command.com /e:4096 /k $INSTDIR\rtems-env.bat %1 %2 %3 %4"
!insertmacro FILE_WRITE_LINE $9 "exit"
!insertmacro FILE_WRITE_LINE $9 ":WinNT"
!insertmacro FILE_WRITE_LINE $9 "start cmd.exe /k $INSTDIR\rtems-env.bat %1 %2 %3 %4"
!insertmacro FILE_WRITE_LINE $9 "exit"
FileClose $9
FileOpen $9 $INSTDIR\sh-run.bat w
!insertmacro FILE_WRITE_LINE $9 "@echo off"
!insertmacro FILE_WRITE_LINE $9 "rem RTEMS batch file: ${RTEMS_VERSION}-${RTEMS_BUILD_VERSION}"
!insertmacro FILE_WRITE_LINE $9 "rem We can only handle 9 parameters. More is too hard."
!insertmacro FILE_WRITE_LINE $9 "call $INSTDIR\rtems-env.bat"
!insertmacro FILE_WRITE_LINE $9 "%1 %2 %3 %4 %5 %6 %7 %8 %9"
FileClose $9
FileOpen $9 $INSTDIR\vs-make.sh w
!insertmacro FILE_WRITE_LINE $9 "#! /bin/sh"
!insertmacro FILE_WRITE_LINE $9 "# RTEMS script: ${RTEMS_VERSION}-${RTEMS_BUILD_VERSION}"
!insertmacro FILE_WRITE_LINE $9 "if [ ! -d $$1 ]; then"
!insertmacro FILE_WRITE_LINE $9 " echo $\"error: no build directory found$\""
!insertmacro FILE_WRITE_LINE $9 " exit 1"
!insertmacro FILE_WRITE_LINE $9 "fi"
!insertmacro FILE_WRITE_LINE $9 "cd $$1"
!insertmacro FILE_WRITE_LINE $9 "shift"
!insertmacro FILE_WRITE_LINE $9 "make $$* 2>&1 | sed -e 's/c:\([0-9]*\):/c(\1):/' \\"
!insertmacro FILE_WRITE_LINE $9 " -e 's/h:\([0-9]*\):/h(\1):/' \\"
!insertmacro FILE_WRITE_LINE $9 " -e 's/S:\([0-9]*\):/S(\1):/' \\"
!insertmacro FILE_WRITE_LINE $9 " -e 's/s:\([0-9]*\):/s(\1):/'"
FileClose $9
SectionEnd
!endif
Section -Post
!ifdef COMMON_FILES
StrCpy $R0 "$INSTDIR\rtems${PRODUCT_VERSION}-${RTEMS_BUILD_VERSION}-tools-uninst.exe"
StrCpy $R1 "RTEMS Tools.lnk"
!else
StrCpy $R0 "$INSTDIR\rtems${PRODUCT_VERSION}-${RTEMS_BUILD_VERSION}-tools-${RTEMS_TARGET}-uninst.exe"
StrCpy $R1 "RTEMS ${RTEMS_TARGET} Tools.lnk"
!insertmacro MUI_STARTMENU_GETFOLDER "Application" $smfolder
!endif
WriteUninstaller "$R0"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}" \
"DisplayName" "$(^Name)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}" \
"UninstallString" "$R0"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}" \
"DisplayVersion" "${PRODUCT_VERSION} Build-${RTEMS_BUILD_VERSION}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}" \
"URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_TITLE}" \
"Publisher" "${PRODUCT_PUBLISHER}"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$smfolder"
!ifdef COMMON_FILES
SetOutPath $INSTDIR
WriteIniStr "$INSTDIR\RTEMS.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
WriteIniStr "$INSTDIR\RTEMS-Wiki.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}wiki"
WriteIniStr "$INSTDIR\RTEMS-Documentation.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}onlinedocs/releases/rtemsdocs-4.7.99.2/share/rtems/html/"
WriteIniStr "$INSTDIR\RTEMS-Support.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}support.html"
CreateShortCut "$SMPROGRAMS\$smfolder\RTEMS Tools.lnk" "$INSTDIR\rtems.bat"
CreateShortCut "$SMPROGRAMS\$smfolder\RTEMS Website.lnk" "$INSTDIR\RTEMS.url"
CreateShortCut "$SMPROGRAMS\$smfolder\RTEMS Wiki.lnk" "$INSTDIR\RTEMS-Wiki.url"
CreateShortCut "$SMPROGRAMS\$smfolder\RTEMS Documentation.lnk" "$INSTDIR\RTEMS-Documentation.url"
CreateShortCut "$SMPROGRAMS\$smfolder\RTEMS Support.lnk" "$INSTDIR\RTEMS-Support.url"
!endif
CreateDirectory "$SMPROGRAMS\$smfolder\Uninstall"
CreateShortCut "$SMPROGRAMS\$smfolder\Uninstall\$R1" "$R0"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Function un.onInit
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 \
"Are you sure you want to uninstall ${PRODUCT_TITLE} ?" IDYES +2
Abort
FunctionEnd
Section Uninstall
SetDetailsView show
StrCpy $2 0
!ifdef COMMON_FILES
FindFirst $0 $1 "$INSTDIR\rtems${PRODUCT_VERSION}-${RTEMS_BUILD_VERSION}-tools-*-uninst.exe"
Uninstall_Targets:
StrCmp $1 "" Uninstall_Targets_Done
IntCmp $2 0 0 +3
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 \
"You have tools installed. Are you sure you want to uninstall all RTEMS Tools ?" IDYES +2
Abort
StrCpy $2 1
DetailPrint "Uninstalling $1"
ExecWait '"$INSTDIR\$1" $SilentOption $DebugOption'
Delete $1
BringToFront
FindNext $0 $1
Goto Uninstall_Targets
Uninstall_Targets_Done:
FindClose $0
!endif
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DetailPrint "Delete the installed files"
!insertmacro RTEMS_DELETE_FILES
!insertmacro MUI_STARTMENU_GETFOLDER "Application" $smfolder
!ifdef COMMON_FILES
Delete "$INSTDIR\AUTHORS"
Delete "$INSTDIR\COPYING"
Delete "$INSTDIR\README"
Delete "$INSTDIR\rtems.bat"
Delete "$INSTDIR\rtems-env.bat"
Delete "$INSTDIR\sh-run.bat"
Delete "$INSTDIR\vs-make.sh"
Delete "$INSTDIR\RTEMS.url"
Delete "$INSTDIR\RTEMS-Wiki.url"
Delete "$INSTDIR\RTEMS-Documentation.url"
Delete "$INSTDIR\RTEMS-Support.url"
RMDir /r "$SMPROGRAMS\$smfolder"
Delete "$INSTDIR\rtems${PRODUCT_VERSION}-${RTEMS_BUILD_VERSION}-tools-uninst.exe"
!else
Delete "$SMPROGRAMS\$smfolder\Uninstall\RTEMS ${RTEMS_TARGET} Tools.lnk"
Delete "$INSTDIR\rtems${PRODUCT_VERSION}-${RTEMS_BUILD_VERSION}-tools-${RTEMS_TARGET}-uninst.exe"
!endif
RMDir "$INSTDIR"
DetailPrint "All done."
!ifdef COMMON_FILES
SetAutoClose false
!else
SetAutoClose true
!endif
SectionEnd

View File

@@ -1,91 +0,0 @@
;
; Ini file generated by the HM NIS Edit IO designer.
;
[Settings]
NumFields=10
[Field 1]
Type=Label
Text=RTEMS Tools for Windows is a set of MinGW tools suitable for compiling RTEMS and RTEMS applications. You should download and install the MinGW runtime and if you wish to build RTEMS or if you need autoconf or automake support the MSYS and MSYS DTK packages as well. You can find the MinGW and MSYS installers on the MinGW web site under the link below.\r\n\r\nFurther information and the source code with patches can be located via the Wiki.
Left=0
Right=292
Top=15
Bottom=74
[Field 2]
Type=Label
Text=RTEMS Tools for Windows
Left=74
Right=297
Top=0
Bottom=12
[Field 3]
Type=Link
Text=http://www.rtems.org/wiki/index.php/MinGW_Tools_for_Windows
State=http://www.rtems.org/wiki/index.php/MinGW_Tools_for_Windows
Left=50
Right=271
Top=117
Bottom=125
[Field 4]
Type=Link
Text=http://www.rtems.org/support.html
State=http://www.rtems.org/support.html
Left=78
Right=217
Top=91
Bottom=99
[Field 5]
Type=Link
Text=http://www.rtems.org/
State=http://www.rtems.org/
Left=50
Right=166
Top=106
Bottom=116
[Field 6]
Type=Link
Text=http://www.mingw.org/
State=http://www.mingw.org/
Left=50
Right=175
Top=127
Bottom=135
[Field 7]
Type=Label
Text=RTEMS
Left=16
Right=44
Top=106
Bottom=114
[Field 8]
Type=Label
Text=Tools Wiki
Left=6
Right=46
Top=116
Bottom=124
[Field 9]
Type=Label
Text=MinGW Website
Left=18
Right=45
Top=127
Bottom=135
[Field 10]
Type=Label
Text=Professional RTEMS Support is available from OAR. Contact them for a quote.
Left=8
Right=292
Top=78
Bottom=88

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

View File

@@ -1,36 +0,0 @@
;
; Copy the the MUI code with the page bit missing
;
!macro MUI_PAGE_STARTMENU_DUMMY ID VAR
!insertmacro MUI_SET MUI_${MUI_PAGE_UNINSTALLER_PREFIX}STARTMENUPAGE
!insertmacro MUI_DEFAULT MUI_STARTMENUPAGE_DEFAULTFOLDER "$(^Name)"
!insertmacro MUI_DEFAULT MUI_STARTMENUPAGE_TEXT_TOP "$(MUI_${MUI_PAGE_UNINSTALLER_PREFIX}INNERTEXT_STARTMENU_TOP)"
!insertmacro MUI_DEFAULT MUI_STARTMENUPAGE_TEXT_CHECKBOX "$(MUI_${MUI_PAGE_UNINSTALLER_PREFIX}INNERTEXT_STARTMENU_CHECKBOX)"
!define MUI_STARTMENUPAGE_VARIABLE "${VAR}"
!define "MUI_STARTMENUPAGE_${ID}_VARIABLE" "${MUI_STARTMENUPAGE_VARIABLE}"
!define "MUI_STARTMENUPAGE_${ID}_DEFAULTFOLDER" "${MUI_STARTMENUPAGE_DEFAULTFOLDER}"
!ifdef MUI_STARTMENUPAGE_REGISTRY_ROOT
!define "MUI_STARTMENUPAGE_${ID}_REGISTRY_ROOT" "${MUI_STARTMENUPAGE_REGISTRY_ROOT}"
!endif
!ifdef MUI_STARTMENUPAGE_REGISTRY_KEY
!define "MUI_STARTMENUPAGE_${ID}_REGISTRY_KEY" "${MUI_STARTMENUPAGE_REGISTRY_KEY}"
!endif
!ifdef MUI_STARTMENUPAGE_REGISTRY_VALUENAME
!define "MUI_STARTMENUPAGE_${ID}_REGISTRY_VALUENAME" "${MUI_STARTMENUPAGE_REGISTRY_VALUENAME}"
!endif
!undef MUI_STARTMENUPAGE_VARIABLE
!undef MUI_STARTMENUPAGE_TEXT_TOP
!undef MUI_STARTMENUPAGE_TEXT_CHECKBOX
!undef MUI_STARTMENUPAGE_DEFAULTFOLDER
!insertmacro MUI_UNSET MUI_STARTMENUPAGE_NODISABLE
!insertmacro MUI_UNSET MUI_STARTMENUPAGE_REGISTRY_ROOT
!insertmacro MUI_UNSET MUI_STARTMENUPAGE_REGISTRY_KEY
!insertmacro MUI_UNSET MUI_STARTMENUPAGE_REGISTRY_VALUENAME
!insertmacro MUI_UNSET MUI_STARTMENUPAGE_BGCOLOR
!macroend

View File

@@ -1,29 +0,0 @@
; Push $filenamestring (e.g. 'c:\this\and\that\filename.htm')
; Push '\\'
; Pop $R0
; Call StrSlash
; Pop $R0
; ;Now $R0 contains 'c:/this/and/that/filename.htm'
Function StrSlash
Exch $R0
Push $R1
Push $R2
StrCpy $R1 0
loop:
IntOp $R1 $R1 - 1
StrCpy $R2 $R0 1 $R1
StrCmp $R2 "" done
StrCmp $R2 "\" 0 loop ; "
StrCpy $R2 $R0 $R1
Push $R1
IntOp $R1 $R1 + 1
StrCpy $R1 $R0 "" $R1
StrCpy $R0 "$R2/$R1"
Pop $R1
IntOp $R1 $R1 - 1
Goto loop
done:
Pop $R2
Pop $R1
Exch $R0
FunctionEnd

View File

@@ -1,63 +0,0 @@
!define StrStr "!insertmacro StrStr"
!macro StrStr ResultVar String SubString
Push `${String}`
Push `${SubString}`
Call StrStr
Pop `${ResultVar}`
!macroend
Function StrStr
/*After this point:
------------------------------------------
$R0 = SubString (input)
$R1 = String (input)
$R2 = SubStringLen (temp)
$R3 = StrLen (temp)
$R4 = StartCharPos (temp)
$R5 = TempStr (temp)*/
;Get input from user
Exch $R0
Exch
Exch $R1
Push $R2
Push $R3
Push $R4
Push $R5
;Get "String" and "SubString" length
StrLen $R2 $R0
StrLen $R3 $R1
;Start "StartCharPos" counter
StrCpy $R4 0
;Loop until "SubString" is found or "String" reaches its end
loop:
;Remove everything before and after the searched part ("TempStr")
StrCpy $R5 $R1 $R2 $R4
;Compare "TempStr" with "SubString"
StrCmp $R5 $R0 done
;If not "SubString", this could be "String"'s end
IntCmp $R4 $R3 done 0 done
;If not, continue the loop
IntOp $R4 $R4 + 1
Goto loop
done:
/*After this point:
------------------------------------------
$R0 = ResultVar (output)*/
;Remove part before "SubString" on "String" (if there has one)
StrCpy $R0 $R1 `` $R4
;Return output to user
Pop $R5
Pop $R4
Pop $R3
Pop $R2
Pop $R1
Exch $R0
FunctionEnd

View File

@@ -1,9 +0,0 @@
auto_section_text="Autoconf and Automake"
arm_section_text="ARM Targets"
h8300_section_text="H8300 16bit Target"
i386_section_text="Intel i386 Targets"
m68k_section_text="Coldfire and M68000 Targets"
mips_section_text="MIPS Targets"
powerpc_section_text="PowerPC Targets"
sh_section_text="SH Targets"
sparc_section_text="SPARC (Leon) Targets"

View File

@@ -1 +0,0 @@
arm h8300 i386 m68k mips powerpc sh sparc

View File

@@ -1,102 +0,0 @@
#! /bin/sh
# RTEMS Installers and Source Upload script.
#
# This script copies the executable and source to the RTEMS FTP server. It is for
# use on the RTEMS build server.
#
echo $0 $*
source=$(dirname $0)
top=$(pwd)
terminate()
{
echo "error: $*" >&2
exit 1
}
check()
{
if [ $? -ne 0 ]; then
terminate
fi
}
. $source/version
ftpbase=none
prefix=none
while [ $# -gt 0 ];
do
case $1 in
-b)
shift
tool_build=$1
;;
-d)
set -x
;;
-f)
shift
ftpbase=$1
;;
-p)
shift
prefix=$1
;;
-v)
shift
version=$1
;;
--help)
echo "$0 -d -b <build> -f <ftpbase> -p <prefix> -v <version>"
exit 2
;;
*)
terminate "error: invalid option (try --help): $1"
;;
esac
shift
done
if [ $ftpbase = none ]; then
terminate "no ftpbase set"
fi
if [ $prefix = none ]; then
terminate "no prefix set"
fi
exebase=${prefix}/${version}/packages/mingw32/exe
srcbase=${prefix}/${version}/packages/mingw32/SRPMS
mkdir -p ${ftpbase}/${version}/build-${tool_build}/source
check "creating: ${ftpbase}/${version}/build-${tool_build}/source"
exes=$(find $exebase -name \*-${tool_build}.exe)
for e in $exes
do
echo "cp $e ${ftpbase}/${version}/build-${tool_build}/."
cp $e ${ftpbase}/${version}/build-${tool_build}/.
check "coping installer: $e"
done
cd ${ftpbase}/${version}/build-${tool_build}/source
check "change directory: ${ftpbase}/${version}/build-${tool_build}/source"
for s in ${srcbase}/*.rpm
do
echo "rpm2cpio $s | cpio --extract --quiet"
rpm2cpio $s | cpio --extract --quiet
check "RPM to CPIO and CPIO Copy-In failed"
done
rm -f *.spec
check "deleting spec files"
cd $top
exit 0

View File

@@ -1,2 +0,0 @@
version=4.8
tool_build=15

View File

@@ -1 +0,0 @@
Chris Johns <chrisj@rtems.org>

View File

@@ -1,340 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

View File

@@ -1,236 +0,0 @@
Installation Instructions
*************************
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
Software Foundation, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
Basic Installation
==================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. (Caching is
disabled by default to prevent problems with accidental use of stale
cache files.)
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You only need
`configure.ac' if you want to change it or regenerate `configure' using
a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that the
`configure' script does not know about. Run `./configure --help' for
details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
*Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not support the `VPATH'
variable, you have to compile the package for one architecture at a
time in the source code directory. After you have installed the
package for one architecture, use `make distclean' before reconfiguring
for another architecture.
Installation Names
==================
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' cannot figure out automatically,
but needs to determine by the type of machine the package will run on.
Usually, assuming the package is built to be run on the _same_
architectures, `configure' can figure that out, but if it prints a
message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS KERNEL-OS
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share, you
can create a site shell script called `config.site' that gives default
values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script). Here is a another example:
/bin/bash ./configure CONFIG_SHELL=/bin/bash
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
configuration-related scripts to be executed by `/bin/bash'.
`configure' Invocation
======================
`configure' recognizes the following options to control how it operates.
`--help'
`-h'
Print a summary of the options to `configure', and exit.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.

View File

@@ -1,13 +0,0 @@
TARGETS=@TARGETS@
RTEMS_API=@RTEMS_API@
RPMDBPATH=@RPMDBPATH@
all:
export PATH=$(prefix)/bin:$$PATH; \
for t in $(TARGETS) ; \
do \
rpmbuild -v $(RPMDBPATH) -ba $(srcdir)/rtems.spec --target=$$t-rtems$(RTEMS_API) ; \
if [ $$? -ne 0 ]; then \
exit 1 ; \
fi \
done

View File

@@ -1 +0,0 @@
2006-08-17 Add the rtemsrpm package to RTEMS.

View File

@@ -1,2 +0,0 @@
#!/bin/sh
autoreconf -fis

View File

@@ -1,115 +0,0 @@
m4_define([M4_RTEMS_API],[4.7])
m4_define([M4_RTEMS_VERSION],[4.6.99.3])
m4_define([M4_RTEMS_RELEASE],[0])
AC_PREREQ([2.69])
AC_INIT([rtemsrpms],[M4_RTEMS_RELEASE],[http://www.rtems.org/bugzilla])
AC_CONFIG_AUX_DIR(.)
AC_CANONICAL_HOST
AC_PREFIX_DEFAULT([/opt/rtems-][M4_RTEMS_API])
AM_INIT_AUTOMAKE([1.12.2])
rpmprefix="[rtems-]M4_RTEMS_API[-]"
case "$prefix" in
/usr/local)
rpmprefix="local-"
;;
/opt/rtems)
;;
NONE|$ac_default_prefix)
prefix=$ac_default_prefix
;;
*)
rpmprefix="custom-"
;;
esac
AC_ARG_ENABLE([rpmprefix],
[ --enable-rpmprefix=<rpmprefix> prefix rpms],[
case "$enable_rpmprefix" in
yes) # ignore, use default
;;
no) # use default
;;
*) # presume user knows what he is doing
rpmprefix=$enable_rpmprefix;;
esac
])
AC_MSG_CHECKING([for rpm database])
rpmdbpath=
AC_ARG_ENABLE([rpmdbpath],
[ --enable-rpmdbpath=<rpmdbpath> rpm database path],[
case "$enable_rpmdbpath" in
yes) # ignore, use default
;;
no) # use default
;;
*) # presume user knows what he is doing
rpmdbpath="--dbpath $enable_rpmdbpath";;
esac
])
AS_IF([test -z $rpmdbpath],
[AC_MSG_RESULT([system])],
[AC_MSG_RESULT([$rpmdbpath])])
AC_MSG_CHECKING([for bootstrap])
bootstrap=no
AC_ARG_ENABLE([bootstrap],
[ --enable-bootstrap=<bootstap> bootstrap RTEMS],[
case "$enable_bootstrap" in
yes|no) # ignore, use default
bootstrap=$enable_bootstrap;;
*) # use default
;;
esac
])
AC_MSG_RESULT([$bootstrap])
dnl The total list:
dnl arm avr h8300 i386 m68k mips powerpc sh sparc tic4x
AC_MSG_CHECKING([for targets])
AC_ARG_ENABLE([targets],
AS_HELP_STRING([--enable-targets=<targets>],[build for targets <targets>]),
[targets="$enable_targets"],
[targets="arm i386 m68k mips powerpc sh sparc tic4x"]
)
AC_MSG_RESULT([$targets])
AC_MSG_CHECKING([for bsps])
bsps="%{nil}"
AC_ARG_ENABLE([bsps],
[ --enable-bsps=<yes/no/bsps> BSP list],[
case "$enable_bsps" in
yes) # ignore, use default
bsps="all"
;;
no | none)
bsps="%{nil}"
;;
*) # take a the list to build
bsps="$enable_bsps"
;;
esac
])
AS_IF([test x"$bsps" = x"%{nil}"],
[AC_MSG_RESULT([none])],
[AC_MSG_RESULT([$bsps])])
AC_SUBST(RTEMS_API, [M4_RTEMS_API])
AC_SUBST(RTEMS_VERSION, [M4_RTEMS_VERSION])
AC_SUBST(RTEMS_RELEASE, [M4_RTEMS_RELEASE])
AC_SUBST(PREFIX, [$prefix])
AC_SUBST(TARGETS, [$targets])
AC_SUBST(RPMPREFIX, [$rpmprefix])
AC_SUBST(RPMDBPATH, [$rpmdbpath])
AC_SUBST(RTEMS_BOOTSTRAP, [$bootstrap])
AC_SUBST(RTEMS_BSP, [$bsps])
AC_CONFIG_FILES([Makefile rtems.spec])
AC_OUTPUT

View File

@@ -1,114 +0,0 @@
#
# Please send bugfixes or comments to
# http://www.rtems.com/cgi-bin/gnatweb.pl
# or mailto:rtems-bugs@rtems.com
#
%define _prefix @PREFIX@
%define _infodir %{_prefix}/info
%define _mandir %{_prefix}/man
%ifos cygwin cygwin32 mingw mingw32
%define _exeext .exe
%else
%define _exeext %{nil}
%endif
%define rtems_target %{_target}
%define rtems_api @RTEMS_API@
%define rpmprefix @RPMPREFIX@
%define rtems_pkgvers @RTEMS_RELEASE@
%define rtems_version %{expand:%(echo @RTEMS_VERSION@ | sed -e 's,-.*,,')}
%define rtems_rpmvers %{expand:%(echo @RTEMS_VERSION@ | tr - _ )}
%define rtems_bsps @RTEMS_BSP@
%define rtems_bootstrap @RTEMS_BOOTSTRAP@
Name: %{rpmprefix}%{rtems_target}
Summary: RTEMS %{rtems_api} %{rtems_target}
Group: Development/Tools
Version: %{rtems_rpmvers}
Release: %{rtems_version}%{?dist}
License: GPL (modified)
URL: http://www.rtems.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define _use_internal_dependency_generator 0
BuildRequires: texinfo >= 4.2
BuildRequires: %{rpmprefix}%{rtems_target}-binutils
BuildRequires: %{rpmprefix}%{rtems_target}-newlib
BuildRequires: %{rpmprefix}%{rtems_target}-gcc
Source0: ftp://ftp.rtems.org/pub/rtems/%{rtems_api}/rtems-%{rtems_api}-%{rtems_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%description
RTEMS Libraries for %{rtems_target}.
%prep
%setup -c -T -n %{name}-%{version}
%setup -q -T -D -n %{name}-%{version} -a0
%{?PATCH0:%patch0 -p0}
%build
if [ "%{rtems_bootstrap}" = "yes" ]; then
cd rtems-%{rtems_version}
./bootstrap
cd ..
fi
mkdir -p build
if [ "x%{rtems_bsps}" = "x" ]; then
optargs="$optargs --disable-rtemsbsp"
else
optargs="$optargs --enable-rtemsbsp=\"%{rtems_bsps}\""
fi
cd build
../rtems-%{rtems_version}/configure \
--prefix=%{_prefix} \
--target=%rtems_target \
--verbose \
--enable-maintainer-mode \
--disable-multiprocessing \
--enable-cxx \
--enable-rdbg \
--enable-posix \
--enable-networking \
--enable-tests=samples \
--disable-deprecated \
--disable-ada \
--disable-expada \
--enable-multilib \
$optargs
make all
cd ..
%install
export PATH="%{_bindir}:${PATH}"
rm -rf $RPM_BUILD_ROOT
cd build
make DESTDIR=$RPM_BUILD_ROOT install
cd ..
%clean
rm -rf $RPM_BUILD_ROOT
%description
RTEMS operating system for %{rtems_target}
%files
%defattr(-,root,root)
# broken on the avr
#%config %{_prefix}/lib/pkgconfig
%config %{_prefix}/make
%doc %{_prefix}/share/man
%{_bindir}
%{_prefix}/%{rtems_target}