Skip to content

Commit bcc99d5

Browse files
committed
Add a script for updating avr-libc
1 parent f2a70bb commit bcc99d5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

update-avr-libc.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#! /bin/sh -ea
2+
3+
TEMP_CHECKOUT_NAME=avr-libc.new.in-progress
4+
5+
SCRIPT_DIR=$(dirname $0)
6+
cd "${SCRIPT_DIR}"
7+
8+
echo "Checking out the most recent avr-libc"
9+
svn co svn://svn.savannah.nongnu.org/avr-libc/trunk "${TEMP_CHECKOUT_NAME}"
10+
11+
echo "Moving the old libc to a temporary directory"
12+
mv avr-libc avr-libc.old
13+
14+
echo "Moving the new libc to the avr-libc directory"
15+
mv "${TEMP_CHECKOUT_NAME}/avr-libc" "avr-libc"
16+
rm -rf "${TEMP_CHECKOUT_NAME}"
17+
18+
echo "Cleaning up the old avr-libc sources"
19+
rm -rf avr-libc.old

0 commit comments

Comments
 (0)