Correct patch handling magic.

This commit is contained in:
Ralf Corsepius
2005-05-18 15:46:00 +00:00
parent a4ad7597d1
commit 07cf62a3a6

View File

@@ -48,15 +48,12 @@ target_alias=$1
. ./$CFG . ./$CFG
patchn=-1
if test -n "${gcc_patch_version}"; then if test -n "${gcc_patch_version}"; then
patchn=`expr $patchn + 1` PATCH0="Patch0: gcc-${gcc_version}-rtems-${gcc_patch_version}.diff"
PATCH1="Patch${patchn}: gcc-${gcc_version}-rtems-${gcc_patch_version}.diff"
fi fi
if test -n "${newlib_patch_version}"; then if test -n "${newlib_patch_version}"; then
patchn=`expr $patchn + 1` PATCH1="Patch1: newlib-${newlib_version}-rtems-${newlib_patch_version}.diff"
PATCH3="Patch${patchn}: newlib-${newlib_version}-rtems-${newlib_patch_version}.diff"
fi fi
# note that the variables in the gccnewlib directory are actually the same # note that the variables in the gccnewlib directory are actually the same