diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-12-19 09:37:52 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-12-19 09:37:52 +0100 |
commit | 991dc63f174a167ede00865d249f30aa81d92ba9 (patch) | |
tree | 09242f87ae7b652855d753e1a7a5a8cb117502ae | |
parent | 6137b58b4a534e3ac6c10a495f766085da1f43d0 (diff) | |
download | gnunet-991dc63f174a167ede00865d249f30aa81d92ba9.tar.gz gnunet-991dc63f174a167ede00865d249f30aa81d92ba9.zip |
build: fix and refactor scripts
-rw-r--r-- | bin/Makefile.am | 8 | ||||
-rw-r--r-- | bin/meson.build | 16 | ||||
-rwxr-xr-x | bootstrap | 17 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | meson-dist-script | 2 | ||||
-rwxr-xr-x | scripts/dosubst.awk (renamed from bin/dosubst.awk) | 0 | ||||
-rwxr-xr-x | scripts/gana_update.sh (renamed from bin/gana_update.sh) | 0 | ||||
-rwxr-xr-x | scripts/grephdr.sh (renamed from bin/grephdr.sh) | 0 | ||||
-rwxr-xr-x | scripts/grepsrc.sh (renamed from bin/grepsrc.sh) | 0 | ||||
-rw-r--r-- | scripts/meson.build | 16 | ||||
-rwxr-xr-x | scripts/pogen.sh (renamed from bin/pogen.sh) | 0 | ||||
-rwxr-xr-x | scripts/rename.sh (renamed from bin/rename.sh) | 0 | ||||
-rwxr-xr-x | scripts/sphinx_update.sh (renamed from bin/sphinx_update.sh) | 0 |
13 files changed, 23 insertions, 37 deletions
diff --git a/bin/Makefile.am b/bin/Makefile.am deleted file mode 100644 index 18fccda56..000000000 --- a/bin/Makefile.am +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | EXTRA_DIST = \ | ||
2 | dosubst.awk \ | ||
3 | grephdr.sh \ | ||
4 | grepsrc.sh \ | ||
5 | pogen.sh \ | ||
6 | sphinx_update.sh \ | ||
7 | gana_update.sh \ | ||
8 | rename.sh | ||
diff --git a/bin/meson.build b/bin/meson.build deleted file mode 100644 index e98bd2fb3..000000000 --- a/bin/meson.build +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | binfiles = [ | ||
2 | 'dosubst.awk', | ||
3 | 'grephdr.sh', | ||
4 | 'grepsrc.sh', | ||
5 | 'pogen.sh', | ||
6 | 'rename.sh', | ||
7 | 'gana_update.sh', | ||
8 | 'sphinx_update.sh', | ||
9 | ] | ||
10 | |||
11 | foreach f : binfiles | ||
12 | configure_file(input : f, | ||
13 | output : f, | ||
14 | copy: true) | ||
15 | endforeach | ||
16 | |||
@@ -75,23 +75,18 @@ check_libtool() | |||
75 | { | 75 | { |
76 | echo "checking for libtoolize / libtool... " | 76 | echo "checking for libtoolize / libtool... " |
77 | 77 | ||
78 | . "scripts/gana_update.sh" || exit 1 | ||
79 | . "scripts/sphinx_update.sh" || exit 1 | ||
78 | if existence libtool || \ | 80 | if existence libtool || \ |
79 | existence libtoolize || \ | 81 | existence libtoolize || \ |
80 | existence glibtoolize || \ | 82 | existence glibtoolize || \ |
81 | existence slibtool; then | 83 | existence slibtool; then |
82 | if existence autoreconf; then | 84 | autoreconf -if |
83 | autoreconf -if | 85 | elif ! existence meson |
84 | elif ! existence meson; then | 86 | echo "*** No libtoolize (libtool) or libtool or meson found, please install it ***" >&2; |
85 | echo "*** No autoconf or meson installed, please install either ***" | ||
86 | exit 1 | ||
87 | fi | ||
88 | . "bin/pogen.sh" || exit 1 | ||
89 | . "bin/gana_update.sh" || exit 1 | ||
90 | . "bin/sphinx_update.sh" || exit 1 | ||
91 | else | ||
92 | echo "*** No libtoolize (libtool) or libtool found, please install it ***" >&2; | ||
93 | exit 1 | 87 | exit 1 |
94 | fi | 88 | fi |
89 | . "scripts/pogen.sh" || exit 1 | ||
95 | } | 90 | } |
96 | 91 | ||
97 | submodules() | 92 | submodules() |
diff --git a/configure.ac b/configure.ac index 0e1bbb75a..8cc00d1de 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1212,7 +1212,6 @@ AC_DEFINE_UNQUOTED([VCS_VERSION], [$vcs_version], | |||
1212 | 1212 | ||
1213 | AC_CONFIG_FILES([ | 1213 | AC_CONFIG_FILES([ |
1214 | Makefile | 1214 | Makefile |
1215 | bin/Makefile | ||
1216 | contrib/Makefile | 1215 | contrib/Makefile |
1217 | data/Makefile | 1216 | data/Makefile |
1218 | data/hellos/Makefile | 1217 | data/hellos/Makefile |
diff --git a/meson-dist-script b/meson-dist-script index 4695439df..e5e9287dc 100644 --- a/meson-dist-script +++ b/meson-dist-script | |||
@@ -3,4 +3,4 @@ | |||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | cd "${MESON_DIST_ROOT}" | 5 | cd "${MESON_DIST_ROOT}" |
6 | . ./bin/sphinx_update.sh | 6 | . ./scripts/sphinx_update.sh |
diff --git a/bin/dosubst.awk b/scripts/dosubst.awk index 3ed0403dd..3ed0403dd 100755 --- a/bin/dosubst.awk +++ b/scripts/dosubst.awk | |||
diff --git a/bin/gana_update.sh b/scripts/gana_update.sh index 0707433f5..0707433f5 100755 --- a/bin/gana_update.sh +++ b/scripts/gana_update.sh | |||
diff --git a/bin/grephdr.sh b/scripts/grephdr.sh index dd9050335..dd9050335 100755 --- a/bin/grephdr.sh +++ b/scripts/grephdr.sh | |||
diff --git a/bin/grepsrc.sh b/scripts/grepsrc.sh index eb2d5e462..eb2d5e462 100755 --- a/bin/grepsrc.sh +++ b/scripts/grepsrc.sh | |||
diff --git a/scripts/meson.build b/scripts/meson.build index fd45de0d2..830bec0c4 100644 --- a/scripts/meson.build +++ b/scripts/meson.build | |||
@@ -10,3 +10,19 @@ install_data([ | |||
10 | install_data('xdg-scheme-handler'/'gnunet-uri.desktop', | 10 | install_data('xdg-scheme-handler'/'gnunet-uri.desktop', |
11 | install_dir: get_option('datadir')/'applications') | 11 | install_dir: get_option('datadir')/'applications') |
12 | 12 | ||
13 | binfiles = [ | ||
14 | 'dosubst.awk', | ||
15 | 'grephdr.sh', | ||
16 | 'grepsrc.sh', | ||
17 | 'pogen.sh', | ||
18 | 'rename.sh', | ||
19 | 'gana_update.sh', | ||
20 | 'sphinx_update.sh', | ||
21 | ] | ||
22 | |||
23 | foreach f : binfiles | ||
24 | configure_file(input : f, | ||
25 | output : f, | ||
26 | copy: true) | ||
27 | endforeach | ||
28 | |||
diff --git a/bin/pogen.sh b/scripts/pogen.sh index a68152bf4..a68152bf4 100755 --- a/bin/pogen.sh +++ b/scripts/pogen.sh | |||
diff --git a/bin/rename.sh b/scripts/rename.sh index eec77e277..eec77e277 100755 --- a/bin/rename.sh +++ b/scripts/rename.sh | |||
diff --git a/bin/sphinx_update.sh b/scripts/sphinx_update.sh index 6d589667c..6d589667c 100755 --- a/bin/sphinx_update.sh +++ b/scripts/sphinx_update.sh | |||