From 5ede9c8d2e6b82d624680bd139cd910aff650286 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Wed, 11 Jan 2006 11:18:10 +0000 Subject: [PATCH] Added a really hacky script to grab the documentation from the website. --- build/fetch.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 build/fetch.sh diff --git a/build/fetch.sh b/build/fetch.sh new file mode 100755 index 000000000..590017833 --- /dev/null +++ b/build/fetch.sh @@ -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