Skip to content

Commit 5ede9c8

Browse files
committed
Added a really hacky script to grab the documentation from the website.
1 parent ac1e2ed commit 5ede9c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build/fetch.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
curl http://arduino.berlios.de/index.php/Reference/HomePage -o index.html
2+
curl http://arduino.berlios.de/pub/skins/arduino/arduino.css -o arduino.css
3+
for i in `grep -o "http://arduino.berlios.de/index.php/Reference/[^']*" index.html | sort -u | grep -v '?' | cut -d '/' -f 6`; do curl http://arduino.berlios.de/index.php/Reference/$i -o $i.html; done
4+
perl -i -pe "s|http://arduino.berlios.de/index.php/Reference/[^?\"']*\?[^'\"]*|#|g" *.html
5+
perl -i -pe "s|http://arduino.berlios.de/index.php/Reference/([^']*)|\1.html|g" *.html
6+
perl -i -pe "s|http://arduino.berlios.de/pub/skins/arduino/arduino.css|arduino.css|g" *.html

0 commit comments

Comments
 (0)