Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
khalid
radsex
Commits
9fe76b5b
Commit
9fe76b5b
authored
Jun 13, 2018
by
Romain Feron
Browse files
Make clean for libraries and fixed bug in file extension detection
parent
a2bf9992
Changes
2
Hide whitespace changes
Inline
Side-by-side
makefile
View file @
9fe76b5b
...
...
@@ -41,6 +41,7 @@ $(LIBBUILD)/%.o: $(INCLUDE)/*/%.cpp
clean
:
@
rm
-rf
$(BUILD)
/
*
.o
@
rm
-rf
$(BIN)
/
$(TARGET)
@
rm
-rf
$(INCLUDE)
/
*
/
*
.o
@
cd
$(INCLUDE)
/bwa
&&
$(MAKE)
clean
init
:
...
...
src/sequence_file.cpp
View file @
9fe76b5b
...
...
@@ -29,14 +29,11 @@ std::vector<InputFile> get_input_files(const std::string& input_dir_path) {
split_name
=
split
(
current_file
,
"."
);
size_t
s
=
split_name
.
size
();
extension
=
""
;
if
(
s
>
2
)
{
extension
+=
split_name
[
s
-
1
]
+
"."
+
split_name
[
s
-
2
];
}
else
if
(
s
==
2
)
{
extension
=
"."
+
split_name
[
1
];
}
// Careful: this will fail if the file name contains "." ... TODO: solve this problem
for
(
uint
i
=
1
;
i
<
split_name
.
size
();
++
i
)
extension
+=
"."
+
split_name
[
i
];
if
(
s
>
1
)
{
for
(
uint
i
=
1
;
i
<
split_name
.
size
();
++
i
)
extension
+=
"."
+
split_name
[
i
];
}
if
(
std
::
find
(
extensions
.
begin
(),
extensions
.
end
(),
extension
)
!=
extensions
.
end
())
{
temp
.
individual_name
=
split_name
[
0
];
...
...
Write
Preview
Supports
Markdown
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