imip-agent

Annotated docs/tools/profile_prefs.sh

1024:48b37822d2a0
2016-01-29 Paul Boddie Moved common test initialisation into a separate script.
paul@999 1
#!/bin/sh
paul@999 2
paul@999 3
DIRNAME=`dirname $0`
paul@999 4
paul@999 5
BASEDIR="$DIRNAME/../.."
paul@999 6
PROFILE="$BASEDIR/imipweb/profile.py"
paul@999 7
paul@999 8
# Match the prefs_table and swap the columns for a table.
paul@999 9
paul@999 10
echo "|| '''Label''' || '''Setting''' ||"
paul@999 11
paul@999 12
  grep '^ \+("' "$PROFILE" \
paul@1008 13
| sed 's/^ \+("\(.*\)".*, \+_("\(.*\)")),$/|| \2 || [[..\/Preferences#\1|\1]] ||/'
paul@999 14
paul@999 15
# Convert    from...                    to...
paul@1008 16
#            ("setting" ,   _("label")),
paul@999 17
#                                       || label || [[../Preferences#setting|setting]] ||