Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
07ddb9cb
Commit
07ddb9cb
authored
May 12, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kicad: fixed: zip archive command does not work.
parent
1f01cd50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
files-io.cpp
kicad/files-io.cpp
+9
-8
No files found.
kicad/files-io.cpp
View file @
07ddb9cb
...
...
@@ -115,7 +115,7 @@ void WinEDA_MainFrame::OnArchiveFiles( wxCommandEvent& event )
wxFileName
fileName
=
m_ProjectFileName
;
wxString
oldPath
=
wxGetCwd
();
fileName
.
SetExt
(
wxT
(
"
.
zip"
)
);
fileName
.
SetExt
(
wxT
(
"zip"
)
);
wxFileDialog
dlg
(
this
,
_
(
"Archive Project Files"
),
fileName
.
GetPath
(),
fileName
.
GetFullName
(),
...
...
@@ -131,12 +131,12 @@ void WinEDA_MainFrame::OnArchiveFiles( wxCommandEvent& event )
static
const
wxChar
*
extList
[]
=
{
wxT
(
"*.sch"
),
wxT
(
"*.lib"
),
wxT
(
"*.cmp"
),
wxT
(
"*.brd"
),
wxT
(
"*.net"
),
wxT
(
"*.pro"
),
wxT
(
"*.pho"
),
wxT
(
"*.py"
),
wxT
(
"*.pdf"
),
wxT
(
"*.txt"
),
wxT
(
"*.pdf"
),
wxT
(
"*.txt"
),
wxT
(
"*.dcm"
),
NULL
};
wxString
cmd
=
wxT
(
"-
O "
);
cmd
+=
zip
.
Get
PathSeparator
()
+
zip
.
GetFullName
();
wxString
cmd
=
wxT
(
"-
o "
);
// run minizip with option -o (overwrite)
cmd
+=
zip
.
Get
FullPath
();
wxString
currdirname
=
wxT
(
"."
);
currdirname
+=
zip
.
GetPathSeparator
();
...
...
@@ -154,9 +154,8 @@ void WinEDA_MainFrame::OnArchiveFiles( wxCommandEvent& event )
while
(
cont
)
{
wxFileName
fn
(
f
);
cmd
+=
wxT
(
" ."
);
cmd
+=
zip
.
GetPathSeparator
()
+
fn
.
GetFullName
();
cmd
+=
wxT
(
" "
);
cmd
+=
fn
.
GetFullName
();
PrintMsg
(
_
(
"Compress file "
)
+
fn
.
GetFullName
()
+
wxT
(
"
\n
"
)
);
cont
=
dir
.
GetNext
(
&
f
);
}
...
...
@@ -169,7 +168,9 @@ void WinEDA_MainFrame::OnArchiveFiles( wxCommandEvent& event )
#endif
if
(
ExecuteFile
(
this
,
ZIPPER
,
cmd
)
>=
0
)
{
PrintMsg
(
_
(
"
\n
Create Zip Archive "
)
+
zip
.
GetFullName
()
);
wxString
msg
;
msg
.
Printf
(
_
(
"
\n
Create Zip Archive <%s>"
),
zip
.
GetFullName
().
GetData
()
);
PrintMsg
(
msg
);
PrintMsg
(
wxT
(
"
\n
** end **
\n
"
)
);
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment