Added support for MegaHAL AI ChatterBot (Both: Learning and Conversation mode)
[mirrors/libpurple-core-answerscripts.git] / list_vars.sh
CommitLineData
7f54aeea
H
1#!/bin/bash
2file='answerscripts.c'
3pipe=cat
4[ -n "$1" ] && pipe='sed -e s/_/\\_/g'
5pre="$(grep ENV_PREFIX "$file" | head -n 1 | cut -d '"' -f 2)"
6grep setenv "$file" | while read line; do
7 var="$(echo "$line" | cut -d '"' -f 2)";
8 wtf="$(echo "$line" | cut -d ';' -f 2 | cut -d '/' -f 3-)";
9 echo -n "$1* $pre$var";
10 [ -n "$wtf" ] && echo -e "\t($wtf)" || echo
11done | $pipe
This page took 0.111989 seconds and 4 git commands to generate.