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
ntpsec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
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
4
Snippets
Groups
Projects
Show more breadcrumbs
NTPsec
ntpsec
Commits
00a7223f
There was a problem fetching the pipeline summary.
Commit
00a7223f
authored
7 years ago
by
Matt Selsky
Browse files
Options
Downloads
Patches
Plain Diff
PEP8: indent to 4 spaces
parent
7547efdf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wscript
+47
-47
47 additions, 47 deletions
wscript
with
47 additions
and
47 deletions
wscript
+
47
−
47
View file @
00a7223f
...
...
@@ -43,8 +43,8 @@ Usage: waf <command>
def options(ctx):
options_cmd(ctx, config)
ctx.recurse("pylib")
options_cmd(ctx, config)
ctx.recurse("pylib")
def configure(ctx):
...
...
@@ -901,14 +901,14 @@ int main(int argc, char **argv) {
class check(BuildContext):
cmd = 'check'
variant = "main"
cmd = 'check'
variant = "main"
def bin_test(ctx):
"""Run binary check, use after tests."""
from wafhelpers.bin_test import cmd_bin_test
cmd_bin_test(ctx, config)
"""Run binary check, use after tests."""
from wafhelpers.bin_test import cmd_bin_test
cmd_bin_test(ctx, config)
# Borrowed from https://www.rtems.org/
variant_cmd = (
...
...
@@ -930,22 +930,22 @@ for v in ["host", "main"]:
def init_handler(ctx):
cmd = ctx.cmd
if cmd == 'init_handler':
cmd = 'build'
def make_context(name):
for x in Context.classes:
if x.cmd == name and x.fun != 'init_handler':
return x()
ctx.fatal('No class for %r' % cmd)
# By default we want to iterate over each variant.
for v in ["host", "main"]:
obj = make_context(cmd)
obj.variant = v
pprint("YELLOW", "--- %sing %s ---" % (cmd, v))
obj.execute()
cmd = ctx.cmd
if cmd == 'init_handler':
cmd = 'build'
def make_context(name):
for x in Context.classes:
if x.cmd == name and x.fun != 'init_handler':
return x()
ctx.fatal('No class for %r' % cmd)
# By default we want to iterate over each variant.
for v in ["host", "main"]:
obj = make_context(cmd)
obj.variant = v
pprint("YELLOW", "--- %sing %s ---" % (cmd, v))
obj.execute()
commands = (
("install", "init_handler", None),
...
...
@@ -959,15 +959,15 @@ commands = (
for command, func, descr in commands:
class tmp1(Context.Context):
if descr:
__doc__ = descr
cmd = command
fun = func
if ((command in
'install uninstall build clean list step docs bsp info'
)):
execute = Scripting.autoconfigure(Context.Context.execute)
class tmp1(Context.Context):
if descr:
__doc__ = descr
cmd = command
fun = func
if ((command in
'install uninstall build clean list step docs bsp info'
)):
execute = Scripting.autoconfigure(Context.Context.execute)
# end borrowed code
...
...
@@ -981,22 +981,22 @@ def afterparty(ctx):
if ctx.cmd == 'clean' or ctx.cmd == 'distclean':
ctx.exec_command("rm -f wafhelpers/*.pyc pylib/__pycache__/*.pyc wafhelpers/__pycache__/*.pyc ntpd/version.h")
for x in ("ntpclients",):
# List used to be longer...
path_build = ctx.bldnode.make_node("pylib")
path_source = ctx.srcnode.make_node(x + "/ntp")
relpath = "../" + path_build.path_from(ctx.srcnode)
if ctx.cmd in ('install', 'build'):
if ((not path_source.exists()
or os.readlink(path_source.abspath()) != relpath)):
try:
os.remove(path_source.abspath())
except OSError:
pass
os.symlink(relpath, path_source.abspath())
elif ctx.cmd == 'clean':
if path_source.exists():
# print "removing", path_source.abspath()
# List used to be longer...
path_build = ctx.bldnode.make_node("pylib")
path_source = ctx.srcnode.make_node(x + "/ntp")
relpath = "../" + path_build.path_from(ctx.srcnode)
if ctx.cmd in ('install', 'build'):
if ((not path_source.exists()
or os.readlink(path_source.abspath()) != relpath)):
try:
os.remove(path_source.abspath())
except OSError:
pass
os.symlink(relpath, path_source.abspath())
elif ctx.cmd == 'clean':
if path_source.exists():
# print "removing", path_source.abspath()
os.remove(path_source.abspath())
bldnode = ctx.bldnode.abspath()
if ctx.cmd in ('install', 'build'):
os.system("cd %s/pylib; ln -sf ../libntp/ntpc.so ntpc.so "
...
...
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