2006-03-21 00:10:01 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# fetch.sh
|
2008-01-22 22:10:55 +00:00
|
|
|
# David A. Mellis and Tom Pollard
|
2006-03-21 00:10:01 +00:00
|
|
|
# Script to download reference pages from Arduino website and change links
|
2008-01-22 22:10:55 +00: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 00:10:01 +00:00
|
|
|
|
|
|
|
cd reference
|
2008-01-22 22:10:55 +00:00
|
|
|
perl ../create_reference.pl || die 'unable to create local reference pages'
|
|
|
|
|
2006-03-21 00:10:01 +00:00
|
|
|
cd ..
|
2008-01-22 22:10:55 +00:00
|
|
|
zip -r shared/reference.zip reference || die 'unable to create reference.zip archive'
|
|
|
|
|
2006-12-02 16:59:51 +00:00
|
|
|
rm -rf reference
|