[system] / trunk / webwork / system / cgi / profBuildProblemSet.pl Repository:
ViewVC logotype

Diff of /trunk/webwork/system/cgi/profBuildProblemSet.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2 Revision 17
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/profBuildProblemSet.pl 2>&1 5# headers text/html and 0 to make it text/plain.
6 6
7./cgi-scripts/profBuildProblemSet.pl 7debug=0
8debug_html=1
9
10script_name=`basename $0`
11real_script="./cgi-scripts/$script_name"
12
13if [ $debug = 1 ]
14then
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
23else
24 $real_script
25fi

Legend:
Removed from v.2  
changed lines
  Added in v.17

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9