url="http://www.xml-x.org/errors.html" copyright="Copyright (c) 2000-2005 XML-X group" date=$(date) root="XE" input="${root}.txt" header1="Listing of Errors as returned in ErrorResponse" # . functions.sh stuff() { echo " * "; echo " * DO NOT EDIT THIS FILE. See source file below."; echo " * "; echo " * @See ${url}" echo " * @date ${date}" echo " * @file ${input}" echo " * @author $0" echo " * @copy ${copyright}" } ################ PHP ############################# start_php() { echo " \"server is buggy, returned -1\"," } comment_php() { int=$1; word=$2; comment="$3" com="" case "${int}" in '') echo "" ;; "#"*) echo "$1 $2 $3" ;; "//"*) echo "$1 $2 $3" ;; *) if [ "${comment}" != "" ] then echo " $int => \"${comment}\"," fi ;; esac } end_php() { echo ");" echo "" echo "function getErrorString(\$e) { global \$errors; return \$errors[\$e]; }" echo "" echo "?>" } ################ GET TEXT PO ############################# start_po() { echo "#######################################################" echo "##" echo "## XML-X errors" echo "## @See ${url}" echo "## @date ${date}" echo "## @file ${input}" echo "## @author $0" echo "## @copy ${copyright}" echo "##" echo "" } make_po() { int=$1; word=$2; comment="$3" com="" case "${int}" in '') echo "#" ;; "#"*) echo "$1 $2 $3" ;; "//"*) echo "# $1 $2 $3" ;; *) echo "msgid \"${comment}\"" echo "msgstr \"\"" echo "" ;; esac } pause_po() { : } comment_po() { : } end_po() { echo "##" echo "## END - XML-X errors" echo "##" echo "#######################################################" } ################ HTML ############################# start_html() { title="XML-X Errors - ${root}" echo "
"
java_style_comment $1
echo ""
echo ""
echo "| Errno | " echo "Id | " echo "Text | " echo "" j=" | " make_html() { int=$1; word=$2; comment="$3" com="" case "${int}" in '') echo "" ;; "//"*|"#"*) echo " |
|---|---|---|
| $1 $2 $3 | ||
| ${int}${j}${word}${j}${com} |