mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
27 lines
462 B
Text
27 lines
462 B
Text
// names may be a series of files or directories in src that are zipped into
|
|
// dest/zip. dest/zip is logged.
|
|
// src and dest do not have to end in /
|
|
|
|
void logZip_r(string src, string names, string zip, string dest)
|
|
{
|
|
list files;
|
|
int idx;
|
|
string file;
|
|
|
|
chdir(g_cwd);
|
|
|
|
dest += "/";
|
|
|
|
md(dest);
|
|
|
|
if (src != "")
|
|
chdir(src);
|
|
|
|
backtick("zip -r " + g_cwd + dest + zip + " " + names);
|
|
|
|
chdir(g_cwd + dest);
|
|
log(zip);
|
|
}
|
|
|
|
|
|
|