diff options
author | root <root@krebs> | 2011-08-05 21:15:53 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-08-05 21:15:53 +0200 |
commit | f4902a06d375027797cd5a56d4cd39888c4dc2bd (patch) | |
tree | bdc68f142d3262ad492abba4a8aa0fe0694dbbec /util/bin/wiki.firstpar | |
parent | 9d331c1f8b2797d41b033640855b83b2757441ab (diff) | |
parent | 94fc66c9b1fdf04ab59dfe313028632d433e83bd (diff) |
Merge branch 'master' of github.com:/krebscode/painload
Conflicts:
evan/satz-liste
Diffstat (limited to 'util/bin/wiki.firstpar')
-rwxr-xr-x | util/bin/wiki.firstpar | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/util/bin/wiki.firstpar b/util/bin/wiki.firstpar new file mode 100755 index 00000000..df66f707 --- /dev/null +++ b/util/bin/wiki.firstpar @@ -0,0 +1,23 @@ +#! /bin/sh +set -euf + +A=Mozilla + +pwd="$(dirname "$(readlink -f "$0")")" + +for x in \ + "$pwd/../../submodules/github/tmpvar" \ + "$pwd/../../submodules/github/mikeal" \ + "$pwd/../../submodules/github/NV" \ + "$pwd/../../submodules/github/tautologistics" \ +; do + export NODE_PATH="`readlink -f "$x"`${NODE_PATH+:$NODE_PATH}" +done + +# ensure query is ready +#(cd "$pwd/../.." && git submodule update --init) + +query() { + node "$(readlink -f "$pwd/../../submodules/github/visionmedia/query")" "$@" +} +curl -sS -A "\${A-Mozilla}" "$1" | query 'p' 'first' | w3m -T text/html -dump |