Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
ns-3-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
nsnam
ns-3-dev
Commits
6cb06ce5
Commit
6cb06ce5
authored
9 years ago
by
Vedran Miletić
Browse files
Options
Downloads
Patches
Plain Diff
Handle the case where scratch or examples directory is missing
parent
46297abc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wscript
+29
-23
29 additions, 23 deletions
wscript
with
29 additions
and
23 deletions
wscript
+
29
−
23
View file @
6cb06ce5
...
...
@@ -624,32 +624,38 @@ def register_ns3_script(bld, name, dependencies=('core',)):
def
add_examples_programs
(
bld
):
env
=
bld
.
env
if
env
[
'
ENABLE_EXAMPLES
'
]:
for
dir
in
os
.
listdir
(
'
examples
'
):
if
dir
.
startswith
(
'
.
'
)
or
dir
==
'
CVS
'
:
continue
if
os
.
path
.
isdir
(
os
.
path
.
join
(
'
examples
'
,
dir
)):
bld
.
recurse
(
os
.
path
.
join
(
'
examples
'
,
dir
))
try
:
for
dir
in
os
.
listdir
(
'
examples
'
):
if
dir
.
startswith
(
'
.
'
)
or
dir
==
'
CVS
'
:
continue
if
os
.
path
.
isdir
(
os
.
path
.
join
(
'
examples
'
,
dir
)):
bld
.
recurse
(
os
.
path
.
join
(
'
examples
'
,
dir
))
except
OSError
:
return
def
add_scratch_programs
(
bld
):
all_modules
=
[
mod
[
len
(
"
ns3-
"
):]
for
mod
in
bld
.
env
[
'
NS3_ENABLED_MODULES
'
]]
for
filename
in
os
.
listdir
(
"
scratch
"
):
if
filename
.
startswith
(
'
.
'
)
or
filename
==
'
CVS
'
:
continue
if
os
.
path
.
isdir
(
os
.
path
.
join
(
"
scratch
"
,
filename
)):
obj
=
bld
.
create_ns3_program
(
filename
,
all_modules
)
obj
.
path
=
obj
.
path
.
find_dir
(
'
scratch
'
).
find_dir
(
filename
)
obj
.
source
=
obj
.
path
.
ant_glob
(
'
*.cc
'
)
obj
.
target
=
filename
obj
.
name
=
obj
.
target
obj
.
install_path
=
None
elif
filename
.
endswith
(
"
.cc
"
):
name
=
filename
[:
-
len
(
"
.cc
"
)]
obj
=
bld
.
create_ns3_program
(
name
,
all_modules
)
obj
.
path
=
obj
.
path
.
find_dir
(
'
scratch
'
)
obj
.
source
=
filename
obj
.
target
=
name
obj
.
name
=
obj
.
target
obj
.
install_path
=
None
try
:
for
filename
in
os
.
listdir
(
"
scratch
"
):
if
filename
.
startswith
(
'
.
'
)
or
filename
==
'
CVS
'
:
continue
if
os
.
path
.
isdir
(
os
.
path
.
join
(
"
scratch
"
,
filename
)):
obj
=
bld
.
create_ns3_program
(
filename
,
all_modules
)
obj
.
path
=
obj
.
path
.
find_dir
(
'
scratch
'
).
find_dir
(
filename
)
obj
.
source
=
obj
.
path
.
ant_glob
(
'
*.cc
'
)
obj
.
target
=
filename
obj
.
name
=
obj
.
target
obj
.
install_path
=
None
elif
filename
.
endswith
(
"
.cc
"
):
name
=
filename
[:
-
len
(
"
.cc
"
)]
obj
=
bld
.
create_ns3_program
(
name
,
all_modules
)
obj
.
path
=
obj
.
path
.
find_dir
(
'
scratch
'
)
obj
.
source
=
filename
obj
.
target
=
name
obj
.
name
=
obj
.
target
obj
.
install_path
=
None
except
OSError
:
return
def
_get_all_task_gen
(
self
):
for
group
in
self
.
groups
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment