Skip to content

Commit d0a2ebc

Browse files
authored
Copy whole ATPack directory if needed
1 parent f9bd9e2 commit d0a2ebc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

atpack.build.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,13 @@ rm -rf temp/device-specs
5353

5454
EXTRA_LIBS=`diff -r -q ../objdir/avr/lib temp/ | grep "Only in" | grep temp | cut -f4 -d" "`
5555
for x in $EXTRA_LIBS; do
56+
if [ ! -d ${x} ]; then
5657
cd temp
5758
LOCATION=`find . | grep ${x}`
5859
cd ..
60+
else
61+
LOCATION=${x}
62+
fi
5963
cp -r temp/${LOCATION} ../objdir/avr/lib/${LOCATION}
6064
done
6165

0 commit comments

Comments
 (0)