Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
6cfcc21a
Commit
6cfcc21a
authored
May 22, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create an O.S. specific rmdir command and use it
parent
073da780
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
module.py
hdlmake/module/module.py
+1
-1
makefile.py
hdlmake/tools/makefile.py
+1
-1
path.py
hdlmake/util/path.py
+8
-0
No files found.
hdlmake/module/module.py
View file @
6cfcc21a
...
...
@@ -103,7 +103,7 @@ class Module(ModuleContent):
return
logging
.
debug
(
"Removing "
+
self
.
path
)
try
:
command_tmp
=
(
path_mod
.
del
_command
()
+
" "
+
command_tmp
=
(
path_mod
.
rmdir
_command
()
+
" "
+
path_mod
.
relpath
(
self
.
path
))
status_cmd
=
Popen
(
command_tmp
,
stdout
=
PIPE
,
...
...
hdlmake/tools/makefile.py
View file @
6cfcc21a
...
...
@@ -134,7 +134,7 @@ class ToolMakefile(object):
" $(LIBS) "
+
' '
.
join
(
self
.
_clean_targets
[
"clean"
])
self
.
writeln
(
tmp
)
if
path_mod
.
check_windows
():
tmp
=
"
\t\t
rmdir /s /q"
+
\
tmp
=
"
\t\t
"
+
path_mod
.
rmdir_command
()
+
\
" $(LIBS) "
+
' '
.
join
(
self
.
_clean_targets
[
"clean"
])
self
.
writeln
(
tmp
)
...
...
hdlmake/util/path.py
View file @
6cfcc21a
...
...
@@ -189,6 +189,14 @@ def del_command():
return
"rm -rf"
def
rmdir_command
():
"""Get a string with the O.S. specific remove directory command"""
if
check_windows
():
return
"rmdir /s /q"
else
:
return
"rm -rf"
def
copy_command
():
"""Get a string with the O.S. specific copy command"""
if
check_windows
():
...
...
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