| 1 | #!/bin/sh |
1 | #!/bin/sh |
| 2 | |
2 | |
| 3 | #echo "content-type: text/html" |
3 | # debug should be set to 1 to wrap script output s.t. headers are shown |
| 4 | #echo "" |
4 | # debug_html should be set to 1 to make the content-type of the wrapper |
| 5 | #./cgi-scripts/pod2webwork.pl 2>&1 |
5 | # headers text/html and 0 to make it text/plain. |
| 6 | |
6 | |
| 7 | ./cgi-scripts/pod2webwork.pl |
7 | debug=0 |
|
|
8 | debug_html=1 |
| 8 | |
9 | |
|
|
10 | script_name=`basename $0` |
|
|
11 | real_script="./cgi-scripts/$script_name" |
|
|
12 | |
|
|
13 | if [ $debug = 1 ] |
|
|
14 | then |
|
|
15 | if [ $debug_html = 1 ] |
|
|
16 | then |
|
|
17 | echo "Content-type: text/html" |
|
|
18 | else |
|
|
19 | echo "Content-type: text/plain" |
|
|
20 | fi |
|
|
21 | echo "" |
|
|
22 | $real_script 2>&1 |
|
|
23 | else |
|
|
24 | $real_script |
|
|
25 | fi |