comparison scripts/pkg/private/prepare_installation.m @ 14471:d2c095e45196

maint: Remove redundant private function from the package manager. * pkg/private/rm_rf.m: remove file. * pkg/provate/build.m: remove calls to rm_rf. * pkg/provate/configure_make.m: remove calls to rm_rf. * pkg/provate/copy_files.m: remove calls to rm_rf. * pkg/provate/finish_installation.m: remove calls to rm_rf. * pkg/provate/install.m: remove calls to rm_rf. * pkg/provate/packinfo_copy_file.m: remove calls to rm_rf. * pkg/provate/prepare_installation.m: remove calls to rm_rf. * pkg/provate/repackage.m: remove calls to rm_rf. * pkg/provate/uninstall.m: remove calls to rm_rf.
author Carlo de Falco <kingcrimson@tiscali.it>
date Fri, 16 Mar 2012 18:55:09 +0100
parents cfb0173fe1ca
children a46b8b0bd325
comparison
equal deleted inserted replaced
14470:aad7ad0e15c1 14471:d2c095e45196
39 ## If the directory "inst" doesn't exist, we create it. 39 ## If the directory "inst" doesn't exist, we create it.
40 inst_dir = fullfile (packdir, "inst"); 40 inst_dir = fullfile (packdir, "inst");
41 if (! exist (inst_dir, "dir")) 41 if (! exist (inst_dir, "dir"))
42 [status, msg] = mkdir (inst_dir); 42 [status, msg] = mkdir (inst_dir);
43 if (status != 1) 43 if (status != 1)
44 rm_rf (desc.dir); 44 rmdir (desc.dir, "s");
45 error ("the 'inst' directory did not exist and could not be created: %s", 45 error ("the 'inst' directory did not exist and could not be created: %s",
46 msg); 46 msg);
47 endif 47 endif
48 endif 48 endif
49 endfunction 49 endfunction