summaryrefslogtreecommitdiff
path: root/gen-reportcode-list.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gen-reportcode-list.sh')
-rwxr-xr-xgen-reportcode-list.sh84
1 files changed, 0 insertions, 84 deletions
diff --git a/gen-reportcode-list.sh b/gen-reportcode-list.sh
deleted file mode 100755
index a0cf1c9..0000000
--- a/gen-reportcode-list.sh
+++ /dev/null
@@ -1,84 +0,0 @@
-#!/bin/sh
-
-echo Backends - report codes
-echo =======================
-
-for i in *.pl.in *-conf.in
-do
- name=`echo $i | cut -d - -f 1`
- let j=`echo $name | wc -c`
- cap=`echo $name | cut -c 1 | tr a-z A-Z`
- name=$cap`echo $name | cut -c 2-64`
-
- echo
- echo
- echo $name
-
- while let j=$[j - 1]
- do
- echo -n -
- done
-
- echo
- echo
-
- grep gst_report_info $i | sed "s/.*gst_report_info *[(] *//" | \
- sed "s/, *\"/ /" | sed "s/\" *[)]\;.*//" | \
- ( while read line;
- do
- if test x = x`echo $line | cut -d ' ' -f 1 | sed s/[0-9]//g`
- then
- code=$[200 + `echo $line | cut -d ' ' -f 1`]
- desc=`echo $line | cut -d ' ' -f 2-`
- else
- code="2??"
- desc=$line
- fi
- echo $code $desc
- done ) | sort
-
- grep gst_report_warning $i | sed "s/.*gst_report_warning *[(] *//" | \
- sed "s/, *\"/ /" | sed "s/\" *[)]\;.*//" | \
- ( while read line;
- do
- if test x = x`echo $line | cut -d ' ' -f 1 | sed s/[0-9]//g`
- then
- code=$[300 + `echo $line | cut -d ' ' -f 1`]
- desc=`echo $line | cut -d ' ' -f 2-`
- else
- code="3??"
- desc=$line
- fi
- echo $code $desc
- done ) | sort
-
- grep gst_report_error $i | sed "s/.*gst_report_error *[(] *//" | \
- sed "s/, *\"/ /" | sed "s/\" *[)]\;.*//" | \
- ( while read line;
- do
- if test x = x`echo $line | cut -d ' ' -f 1 | sed s/[0-9]//g`
- then
- code=$[400 + `echo $line | cut -d ' ' -f 1`]
- desc=`echo $line | cut -d ' ' -f 2-`
- else
- code="4??"
- desc=$line
- fi
- echo $code $desc
- done ) | sort
-
- grep gst_report_fatal $i | sed "s/.*gst_report_fatal *[(] *//" | \
- sed "s/, *\"/ /" | sed "s/\" *[)]\;.*//" | \
- ( while read line;
- do
- if test x = x`echo $line | cut -d ' ' -f 1 | sed s/[0-9]//g`
- then
- code=$[500 + `echo $line | cut -d ' ' -f 1`]
- desc=`echo $line | cut -d ' ' -f 2-`
- else
- code="5??"
- desc=$line
- fi
- echo $code $desc
- done ) | sort
-done