|
@@ -14,9 +14,8 @@ then
|
|
sudo apt-get install pixz -y
|
|
sudo apt-get install pixz -y
|
|
fi
|
|
fi
|
|
echo "Compressing:"
|
|
echo "Compressing:"
|
|
-cd /usr/local
|
|
|
|
|
|
+cp -r -f /usr/local/avr .
|
|
SIZE=`du -sk avr | cut -f 1`
|
|
SIZE=`du -sk avr | cut -f 1`
|
|
tar cf - avr | pv -p -s ${SIZE}k | pixz > avr_toolchain.tar.xz
|
|
tar cf - avr | pv -p -s ${SIZE}k | pixz > avr_toolchain.tar.xz
|
|
-cd $cwd
|
|
|
|
-sudo mv /usr/local/avr_toolchain.tar.xz .
|
|
|
|
|
|
+rm -r -f avr
|
|
echo -e "\nDone."
|
|
echo -e "\nDone."
|