Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rules
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
rules
Commits
b13fe612
Commit
b13fe612
authored
Oct 25, 2016
by
Xumeiquer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update index_gen.sh with small optimization
parent
f7549240
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
index_gen.sh
index_gen.sh
+6
-12
No files found.
index_gen.sh
View file @
b13fe612
...
@@ -21,19 +21,13 @@ function gen_index {
...
@@ -21,19 +21,13 @@ function gen_index {
AVOID
=
"_?index.yara?|utils"
AVOID
=
"_?index.yara?|utils"
if
[
x
"
$BASE
"
==
x
"."
]
;
then
if
[
x
"
$BASE
"
==
x
"."
]
;
then
if
[
$INC_MOBILE
==
false
]
;
then
if
[
$INC_MOBILE
==
false
]
;
then
if
[
$OS
==
"Darwin"
]
;
then
AVOID
=
"_?index.yara?|utils|Mobile"
find
-E
$BASE
-regex
".*
\.
yara?"
|
grep
-vE
"
$AVOID
|Mobile"
| awk
'{print "include \"" $0 "\""}'
>>
$IDX_NAME
fi
else
if
[
$OS
==
"Darwin"
]
;
then
# Linux version and potentialy Cygwin
find
-E
$BASE
-regex
".*
\.
yara?"
|
grep
-vE
"
$AVOID
"
| awk
'{print "include \"" $0 "\""}'
>>
$IDX_NAME
find
$BASE
-regex
".*
\.
yara?"
|
grep
-vE
"
$AVOID
|Mobile"
| awk
'{print "include \"" $0 "\""}'
>>
$IDX_NAME
fi
else
else
if
[
$OS
==
"Darwin"
]
;
then
# Linux version and potentialy Cygwin
find
-E
$BASE
-regex
".*
\.
yara?"
|
grep
-vE
"
$AVOID
"
| awk
'{print "include \"" $0 "\""}'
>>
$IDX_NAME
find
$BASE
-regex
".*
\.
yara?"
|
grep
-vE
"
$AVOID
"
| awk
'{print "include \"" $0 "\""}'
>>
$IDX_NAME
else
# Linux version and potentialy Cygwin
find
$BASE
-regex
".*
\.
yara?"
|
grep
-vE
"
$AVOID
"
| awk
'{print "include \"" $0 "\""}'
>>
$IDX_NAME
fi
fi
fi
else
else
if
[
$OS
==
"Darwin"
]
;
then
if
[
$OS
==
"Darwin"
]
;
then
...
...
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