summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-01 21:57:28 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-01 21:57:28 +0000
commit4643b181bdf1d9121f9d6d4214e991e7b9f52d30 (patch)
treec5615b9d242314847c555255c4e57f195c3444ad /extra
parent01d1ae3769f7fb1fa66dbc0789a61b05fee3452f (diff)
Change all 'cd <foo>; bar' constructs to 'cd <foo> && bar' for
proper error checking -Erik
Diffstat (limited to 'extra')
-rwxr-xr-xextra/scripts/get-needed-libgcc-objects.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/extra/scripts/get-needed-libgcc-objects.sh b/extra/scripts/get-needed-libgcc-objects.sh
index 0caa2c5f6..827262ac7 100755
--- a/extra/scripts/get-needed-libgcc-objects.sh
+++ b/extra/scripts/get-needed-libgcc-objects.sh
@@ -36,7 +36,7 @@ fi
rm -rf tmp-gcc
mkdir tmp-gcc
-(cd tmp-gcc ; $AR -x $LIBGCC)
+(cd tmp-gcc && $AR -x $LIBGCC)
rm -f libgcc.ldr
echo Extracting referenced libgcc.a objects ...
@@ -44,7 +44,7 @@ echo Extracting referenced libgcc.a objects ...
rm -f obj.need.0
touch obj.need.0
while [ -s obj.need ] && ! cmp -s obj.need obj.need.0 ; do
- (cd tmp-gcc ; cat ../obj.need | uniq | xargs $LD -r -o ../libgcc.ldr)
+ (cd tmp-gcc && cat ../obj.need | uniq | xargs $LD -r -o ../libgcc.ldr)
cp obj.need obj.need.0
if $NM --undefined-only libgcc.ldr > sym.need ; then
for SYM in `cat sym.need | sed -e 's/ U //g'` ; do
@@ -56,12 +56,12 @@ while [ -s obj.need ] && ! cmp -s obj.need obj.need.0 ; do
done
cat obj.need | sort | uniq > obj.need.0
-(cd tmp-gcc ; cp `cat ../obj.need` ..)
+(cd tmp-gcc && cp `cat ../obj.need` ..)
if [ -s obj.need.0 ] ; then
echo Objects added from $LIBGCC:
cat obj.need.0
- (cd tmp-gcc ; cat ../obj.need | uniq | xargs $AR r ../libgcc-need.a)
+ (cd tmp-gcc && cat ../obj.need | uniq | xargs $AR r ../libgcc-need.a)
else
echo No objects added from $LIBGCC.
fi