diff options
author | ng0 <ng0@n0.is> | 2019-10-28 17:17:55 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-10-28 17:17:55 +0000 |
commit | 2f5e5544b8a3d9fceb7dee4de80eadb8e8895d2e (patch) | |
tree | 18f078f1106ad3f0ea221578ce29555888a67140 /configure | |
parent | 37bb08c5baa860b3968972c6c4c1bceb9fbf1f26 (diff) | |
download | www-2f5e5544b8a3d9fceb7dee4de80eadb8e8895d2e.tar.gz www-2f5e5544b8a3d9fceb7dee4de80eadb8e8895d2e.zip |
use new build-system.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 00000000..4ffb738b --- /dev/null +++ b/configure | |||
@@ -0,0 +1,53 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # This file is part of TALER | ||
4 | # (C) 2019 GNUnet e.V. | ||
5 | # | ||
6 | # This is very simple POSIX sh script which | ||
7 | # identifies the first matching | ||
8 | # python3 identifier in $PATH and produces | ||
9 | # configure.py from configure.py.in, and then | ||
10 | # calls the new executable configure.py. | ||
11 | # | ||
12 | # It should be portable on Unices. Report bugs on | ||
13 | # the bugtracker if you discover that it isn't | ||
14 | # working as intended. | ||
15 | # | ||
16 | # Authors: | ||
17 | # Author: ng0 <ng0@taler.net> | ||
18 | # | ||
19 | # Permission to use, copy, modify, and/or distribute this software for any | ||
20 | # purpose with or without fee is hereby granted. | ||
21 | # | ||
22 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
23 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
24 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE | ||
25 | # LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES | ||
26 | # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
27 | # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||
28 | # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF | ||
29 | # THIS SOFTWARE. | ||
30 | # | ||
31 | # SPDX-License-Identifier: 0BSD | ||
32 | |||
33 | # we invoke configure not as a symlink but as a copy, | ||
34 | # so we have to use a fixed location for the repository! | ||
35 | dir=$(dirname "$(readlink -f -- "$0")")/build-system/taler-build-scripts | ||
36 | . $dir/sh/lib.sh/existence.sh | ||
37 | . $dir/sh/lib.sh/existence_python.sh | ||
38 | |||
39 | scriptpath=build-system/taler-build-scripts | ||
40 | |||
41 | if ! test -d "$scriptpath"; then | ||
42 | echo "fatal error: taler-build-scripts not found at $scriptpath" >&2 | ||
43 | exit 1 | ||
44 | fi | ||
45 | |||
46 | export PYTHONPATH="$scriptpath:${PYTHONPATH:-}" | ||
47 | |||
48 | # Call configure.py, assuming all went well. | ||
49 | # $1 is read by configure.py as the prefix. | ||
50 | # If $1 is empty, the python script checks the | ||
51 | # environment for PREFIX. We might need more | ||
52 | # variables and switches, such as DESTDIR. | ||
53 | exec "$PYTHON" ./configure.py $@ | ||