File buildavr_chop.diff of Package wrightflyer
--- buildavr-no-insight.sh.orig 2010-01-26 18:04:39.000000000 +0100
+++ buildavr-no-insight.sh 2010-03-03 02:29:41.000000000 +0100
@@ -99,6 +99,7 @@
cd $prefix/source
+if [ -n "$BUILD_avarice" ]; then
echo "($0) installing avarice source"
tar xvjf $archive/${avaricetar}
cerror "avarice source installation failed"
@@ -127,6 +128,7 @@
#
cd $prefix/source
+fi; if [ -n "$BUILD_avrdude" ]; then
echo "($0) installing ardude source"
tar xvzf $archive/${avrdudetar}
cerror "avrdude source installation failed"
@@ -157,6 +159,7 @@
#
cd $prefix/source
+fi; if [ -n "$BUILD_binutils" ]; then
echo "($0) installing binutils source"
tar xvjf $archive/${binutilstar}
cerror "binutils source installation failed"
@@ -224,14 +227,17 @@
cd $prefix/source
+fi; if [ -n "$BUILD_GMP" ]; then
echo "($0) installing GMP source"
tar xvjf $archive/${gmptar}
cerror "GMP source installation failed"
+fi; if [ -n "$BUILD_mpfr" ]; then
echo "($0) installing mpfr source"
tar xvjf $archive/${mpfrtar}
cerror "MPFR source installation failed"
+fi; if [ -n "$BUILD_GCC" ]; then
echo "($0) installing GCC source"
tar xvjf $archive/${gcccoretar}
cerror "GCC source installation failed"
@@ -310,6 +316,7 @@
#
cd $prefix/source
+fi; if [ -n "$BUILD_libc" ]; then
echo "($0) installing libc"
tar xvjf $archive/${avrlibctar}
cerror "libc source installation failed"
@@ -332,8 +339,9 @@
make all install clean
cerror "libc build failed"
+fi
# strip all the binaries
- find $prefix -type d -name bin -exec find \{\} -type f \; | xargs strip > /dev/null 2>&1
+# find $prefix -type d -name bin -exec find \{\} -type f \; | xargs strip > /dev/null 2>&1
cecho "\n"
cecho "${cyan}installation of ${target} GNU tools complete\n"
@@ -445,7 +453,7 @@
cecho "\n"
cecho "${cyan}were missing - download them to $archive first\n";
- exit
+ # exit
fi
buildandinstall 2>&1 | tee $buildlog