#!/usr/local/bin/tclsh8.0 #!/usr/bin/tclsh proc copy { src dest } { if {[file exists $dest]} { puts "Overwriting $dest with $src" file copy -force $src $dest } else { puts "Copying $src to $dest" file mkdir [file dirname $dest] file copy $src $dest } } set GUITools "grader.ppm manager.ppm menu.tcl quizzer.ppm" set GUIToolstrip "answers grader.2 manager.2 quizzer.2 webpage.2" set pProj "allcapaid capahtml capalogin capasbin qzparse" set arch [exec uname] catch {exec mkdir DIST/$arch} foreach a $GUITools { copy GUITools/$a DIST/$arch/$a } foreach a $pProj { copy pProj/$arch/$a DIST/$arch/$a } foreach a $GUIToolstrip { set b [file rootname $a] copy GUITools/$arch/$a DIST/$arch/$b } 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.