From 4244921383d0da565501c30590fae0a9080f8a44 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Fri, 13 Jun 2014 18:23:37 +0900 Subject: [PATCH] Added script to generate option strings wiki page. --- doc/scripts/print_option_string.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 doc/scripts/print_option_string.sh diff --git a/doc/scripts/print_option_string.sh b/doc/scripts/print_option_string.sh new file mode 100755 index 00000000..76abe002 --- /dev/null +++ b/doc/scripts/print_option_string.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +PORT_NUMBER=${1:-5001} + +echo "Option Strings" +echo "==============" +echo +echo "Introduction" +echo "------------" +echo +echo "Client version: " `xmlrpc2scgi.py -p scgi://127.0.0.1:${PORT_NUMBER} system.client_version` +echo +echo "Generated by 'rtorrent/doc/scripts/print_option_string.sh' on `date -u`." + +for i in strings.choke_heuristics strings.choke_heuristics.upload strings.choke_heuristics.download strings.connection_type strings.encryption strings.ip_filter strings.ip_tos strings.log_group strings.tracker_event strings.tracker_mode; do + echo + echo $i + echo `echo $i | tr 'a-z_.' '-'` + echo + echo '```' + xmlrpc2scgi.py -p scgi://127.0.0.1:${PORT_NUMBER} $i | tr , '\n' | tr '[' ' ' | tr ']' ' ' + echo '```' +done