From b2ad0b0bf7ab7c9916fca5d5ed4b7990a5e30d45 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 15 Sep 2018 11:35:44 +0200 Subject: Replace symlink with minimal waf wrapper script --- waf | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) mode change 120000 => 100755 waf diff --git a/waf b/waf deleted file mode 120000 index 59d3164..0000000 --- a/waf +++ /dev/null @@ -1 +0,0 @@ -waflib/waf \ No newline at end of file diff --git a/waf b/waf new file mode 100755 index 0000000..e22930a --- /dev/null +++ b/waf @@ -0,0 +1,16 @@ +#!/usr/bin/env python + +# Minimal waf script for projects that include waflib directly + +from waflib import Context, Scripting + +import inspect +import os + +def main(): + script_path = os.path.abspath(inspect.getfile(inspect.getmodule(main))) + project_path = os.path.dirname(script_path) + Scripting.waf_entry_point(os.getcwd(), Context.WAFVERSION, project_path) + +if __name__ == '__main__': + main() -- cgit v1.2.1