2006-03-21 01:10:01 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# fetch.sh
|
2008-01-22 23:10:55 +01:00
|
|
|
# David A. Mellis and Tom Pollard
|
2006-03-21 01:10:01 +01:00
|
|
|
# Script to download reference pages from Arduino website and change links
|
2008-01-22 23:10:55 +01:00
|
|
|
# to point to local copies of the pages.
|
|
|
|
|
|
|
|
die () { echo ERROR: $*; exit 1; }
|
|
|
|
|
|
|
|
mkdir reference || die 'unable to create reference directory'
|
2006-03-21 01:10:01 +01:00
|
|
|
|
|
|
|
cd reference
|
2008-01-22 23:10:55 +01:00
|
|
|
perl ../create_reference.pl || die 'unable to create local reference pages'
|
|
|
|
|
2010-12-24 02:08:09 +01:00
|
|
|
mkdir img
|
2015-05-20 17:10:06 +02:00
|
|
|
curl http://www.arduino.cc/en/pub/skins/arduinoUno/img/logo.png > img/logo.png
|
2010-12-24 02:08:09 +01:00
|
|
|
|
2006-03-21 01:10:01 +01:00
|
|
|
cd ..
|
2008-01-22 23:10:55 +01:00
|
|
|
zip -r shared/reference.zip reference || die 'unable to create reference.zip archive'
|
|
|
|
|
2006-12-02 17:59:51 +01:00
|
|
|
rm -rf reference
|