Index: openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl,v diff -u -N -r1.133.2.51 -r1.133.2.52 --- openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 28 Sep 2014 15:55:41 -0000 1.133.2.51 +++ openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 28 Sep 2014 16:06:35 -0000 1.133.2.52 @@ -17,6 +17,10 @@ Create a zip file. If source is a directory, archive will contain all files into directory without the trailing directory itself. } { + set zip [util::which zip] + if {$zip eq ""} { + error "zip command not found on the system." + } set cmd [list exec] switch $::tcl_platform(platform) { windows { @@ -38,7 +42,7 @@ # to do this without building a little script... set zip_cmd [list] lappend zip_cmd "cd $in_path" - lappend zip_cmd "zip -r \"${destination}\" \"${filename}\"" + lappend zip_cmd "${zip} -r \"${destination}\" \"${filename}\"" set zip_cmd [join $zip_cmd " && "] lappend cmd $zip_cmd