File: fetch.sh

package info (click to toggle)
arduino 2:1.0.5+dfsg2-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 40,280 kB
  • ctags: 18,385
  • sloc: java: 57,238; cpp: 23,031; ansic: 13,695; makefile: 2,315; xml: 468; perl: 201; sh: 156; python: 62
file content (21 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# fetch.sh
# David A. Mellis and Tom Pollard
# Script to download reference pages from Arduino website and change links
# to point to local copies of the pages. 

die () { echo ERROR: $*; exit 1; }

mkdir reference  || die 'unable to create reference directory'

cd reference
perl ../create_reference.pl || die 'unable to create local reference pages'

mkdir img
curl http://arduino.cc/en/pub/skins/arduinoUno/img/logo.png > img/logo.png

cd ..
zip -r shared/reference.zip reference || die 'unable to create reference.zip archive'

rm -rf reference