/usr/lib/bouml/FileControl/9217.bodies is in bouml-plugouts-src 4.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | class UmlPackage
!!!144258.cpp!!! fileControl(in ci : bool) : void
UmlPackage * prj = getProject();
QCString prjfile = prj->supportFile();
BooL rec;
BooL reload;
QCString cmd;
if (! prj->propertyValue((ci) ? "check-in-cmd" : "check-out-cmd", cmd))
cmd = "specify the command containing %file and %dir or %dironly";
Dialog dialog(ci, cmd, rec, reload); // the dialog execution set 'cmd' and 'rec'
if (dialog.exec() == QDialog::Accepted) {
// save the command for a future usage
prj->set_PropertyValue((ci) ? "check-in-cmd" : "check-out-cmd", cmd);
if (reload)
saveProject();
// get files list
QDict<void> files;
getFiles(files, (rec) ? ~0u : 1);
if (this == prj)
getAuxFiles(files);
// apply the command on each file
QDictIterator<void> it(files);
QFileInfo prjpath(prjfile);
QString dir = prjpath.dirPath(TRUE);
QString dironly = dir;
int index;
if ((dironly.length() > 3) &&
(((const char *) dironly)[1] == ':') &&
(((const char *) dironly)[2] == '/'))
dironly = dironly.mid(2);
while ((index = cmd.find("%dironly")) != -1)
cmd.replace(index, 8, dironly);
while ((index = cmd.find("%dir")) != -1)
cmd.replace(index, 4, dir);
while (it.current()) {
QString s = cmd;
while ((index = s.find("%file")) != -1)
s.replace(index, 5, it.currentKey());
system((const char *) s);
++it;
}
UmlCom::trace("Done.");
if (reload)
loadProject(prjfile);
}
!!!144514.cpp!!! getFiles(inout files : QDict<void>, in rec : unsigned) : void
if (rec != 0)
UmlItem::getFiles(files, rec - 1);
!!!144898.cpp!!! getAuxFiles(inout files : QDict<void>) : void
static const char * aux[] = {
"cpp_includes", "generation_settings", "idl_includes",
"java_imports", "stereotypes", "tools", 0
};
const char ** p = aux;
QFileInfo prjpath(supportFile());
QString dir = prjpath.dirPath(TRUE) + "/";
while(*p != 0) {
QFileInfo fi(dir + *p);
if (fi.exists())
files.replace(*p, (void *) 1);
p += 1;
}
|