--- trunk/webwork/system/cgi/pod2webwork.pl 2001/06/18 17:54:53 16 +++ trunk/webwork/system/cgi/pod2webwork.pl 2001/06/18 18:55:18 17 @@ -1,8 +1,25 @@ #!/bin/sh -#echo "content-type: text/html" -#echo "" -#./cgi-scripts/pod2webwork.pl 2>&1 +# debug should be set to 1 to wrap script output s.t. headers are shown +# debug_html should be set to 1 to make the content-type of the wrapper +# headers text/html and 0 to make it text/plain. -./cgi-scripts/pod2webwork.pl +debug=0 +debug_html=1 +script_name=`basename $0` +real_script="./cgi-scripts/$script_name" + +if [ $debug = 1 ] +then + if [ $debug_html = 1 ] + then + echo "Content-type: text/html" + else + echo "Content-type: text/plain" + fi + echo "" + $real_script 2>&1 +else + $real_script +fi