summaryrefslogtreecommitdiff
path: root/hw/getsilego
diff options
context:
space:
mode:
authorJoerg Reisenweber <joerg@neo900.org>2016-12-01 07:13:35 +0100
committerGenerated from internal repo <nobody@neo900.org>2016-12-01 07:13:35 +0100
commite03c371dc4eaaf3c9c1813e170bedfd649c09cbc (patch)
tree94737dc772073b6d0bf36cea6b21fcdd8f83383e /hw/getsilego
parent56b0b4ffcca351eb56b020fc8448c9d15b9b2900 (diff)
downloadee-e03c371dc4eaaf3c9c1813e170bedfd649c09cbc.tar.gz
ee-e03c371dc4eaaf3c9c1813e170bedfd649c09cbc.tar.bz2
ee-e03c371dc4eaaf3c9c1813e170bedfd649c09cbc.zip
added a little hack to cope with silego rapidly changing URLs shellscript getsilego takes one parameter: searchstring - e.g. 46521 gendocdb.pl my very first perl hack, no idea what I did ;-) docdb.in new syntax element "DS `<shell $(command_to_execute)> <parameters>" backtick ` first char denotes the command will get executed and should return via STDOUT the URL of the PDF to download e.g: "DS `./getsilego 46533"
Diffstat (limited to 'hw/getsilego')
-rwxr-xr-xhw/getsilego2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/getsilego b/hw/getsilego
new file mode 100755
index 0000000..d9c9612
--- /dev/null
+++ b/hw/getsilego
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo -n $(wget -q http://www.silego.com/softdoc/datasheet.html?filterPN=${1} -O -|sed -n "s%.*href\=\"\([^ ]*${1}[^ ]*pdf\)\".*%\1%;T;p;q" )