diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-10-14 22:03:24 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-10-14 22:21:56 +0530 |
commit | ab8503f11de99b030368d24faf7c8788de9eb84e (patch) | |
tree | 49c13e2b45c2ef1d2419bbee64abdb016dadb3df /configure.py.template | |
parent | c49278458aad2d2bfbf91b3e4ee4dd1650bf9601 (diff) | |
download | build-common-ab8503f11de99b030368d24faf7c8788de9eb84e.tar.gz build-common-ab8503f11de99b030368d24faf7c8788de9eb84e.tar.bz2 build-common-ab8503f11de99b030368d24faf7c8788de9eb84e.zip |
build scripts as library
Diffstat (limited to 'configure.py.template')
-rwxr-xr-x | configure.py.template | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.py.template b/configure.py.template new file mode 100755 index 0000000..f55fec1 --- /dev/null +++ b/configure.py.template @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +import sys +from pathlib import Path + +base_dir = Path(__file__, "../build-system/taler-build-scripts").resolve() +if not base_dir.exists(): + print( + f"build system directory ({base_dir}) missing", file=sys.stderr + ) + sys.exit(1) +sys.path.insert(0, base_dir) + +from talerbuildconfig import * + +b = BuildConfig() +b.enable_prefix() +b.enable_configmk() +b.add_tool(PosixTool("find")) +b.run() |