1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

Added a really hacky script to grab the documentation from the website.

This commit is contained in:
David A. Mellis 2006-01-11 11:18:10 +00:00
parent ac1e2edcc6
commit 5ede9c8d2e

6
build/fetch.sh Executable file
View File

@ -0,0 +1,6 @@
curl http://arduino.berlios.de/index.php/Reference/HomePage -o index.html
curl http://arduino.berlios.de/pub/skins/arduino/arduino.css -o arduino.css
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
perl -i -pe "s|http://arduino.berlios.de/index.php/Reference/[^?\"']*\?[^'\"]*|#|g" *.html
perl -i -pe "s|http://arduino.berlios.de/index.php/Reference/([^']*)|\1.html|g" *.html
perl -i -pe "s|http://arduino.berlios.de/pub/skins/arduino/arduino.css|arduino.css|g" *.html