summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-03-18 00:41:36 (GMT)
committerAlexey Neyman <stilor@att.net>2018-04-07 19:03:17 (GMT)
commit5b95b81ea90682c124d5280b64a91a249c464ee4 (patch)
tree6ab5f2891dd81ae9be21cd56fe8a7dcde4485d3c
parent0dc8565c4fa521e71667030ec0f994aa4f3918ec (diff)
Kill gperf vestiges
Generate paths.sh by configure, do away with paths.mk. Signed-off-by: Alexey Neyman <stilor@att.net>
-rw-r--r--.gitignore2
-rw-r--r--.travis.yml1
-rwxr-xr-xbootstrap6
-rw-r--r--configure.ac1
-rw-r--r--ct-ng.in13
-rw-r--r--debian/control2
-rw-r--r--paths.sh.in12
7 files changed, 33 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 0d917b8..0f5d8a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,7 +10,7 @@ Makefile.in
ct-ng
!ct-ng.comp
!ct-ng.in
-paths.*
+paths.sh
config/configure.in
config/gen/
config/versions/
diff --git a/.travis.yml b/.travis.yml
index 1be7a57..aa56c43 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,7 +23,6 @@ addons:
packages:
- bison
- flex
- - gperf
- libncurses5-dev
- texinfo
- help2man
diff --git a/bootstrap b/bootstrap
index e388420..5c6eaca 100755
--- a/bootstrap
+++ b/bootstrap
@@ -740,6 +740,7 @@ gen_selection menu comp_libs "Companion libraries"
msg "*** Gathering the list of data files to install"
{
+ declare -A seen_files
echo -n "verbatim_data ="
find config contrib packages samples scripts -type f | LANG=C sort | while read f; do
case "${f}" in
@@ -754,8 +755,13 @@ msg "*** Gathering the list of data files to install"
f=config/configure.in
;;
esac
+ # Checks & substitutions above may result in duplicate files
+ if [ -n "${seen_files[${f}]}" ]; then
+ continue
+ fi
echo " \\"
echo -n " ${f}"
+ seen_files[${f}]=y
done
} > verbatim-data.mk
diff --git a/configure.ac b/configure.ac
index 20d5b42..5e9fb18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -297,6 +297,7 @@ AS_IF(
AC_CONFIG_FILES([
Makefile
+ paths.sh
kconfig/Makefile
config/configure.in
])
diff --git a/ct-ng.in b/ct-ng.in
index 0b1e47d..10ee237 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -27,7 +27,18 @@ CT_WGET := @wget@
CT_CURL := @curl@
# Paths found by ./configure
-include $(CT_LIB_DIR)/paths.mk
+export install = @INSTALL@
+export bash = @BASH_SHELL@
+export awk = @AWK@
+export grep = @GREP@
+export make = @MAKE@
+export sed = @SED@
+export libtool = @LIBTOOL@
+export libtoolize = @LIBTOOLIZE@
+export objcopy = @OBJCOPY@
+export objdump = @OBJDUMP@
+export readelf = @READELF@
+export patch = @PATCH@
# Some distributions (eg. Ubuntu) thought it wise to point /bin/sh to
# a truly POSIX-conforming shell, ash in this case. This is not so good
diff --git a/debian/control b/debian/control
index f6e7eea..4c2a95e 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: devel
Priority: optional
Maintainer: Multiple Candidates <open@example.com>
Build-Depends: debhelper (>= 9), autoconf, automake, autotools-dev,
- libncursesw5-dev, libncurses5-dev, gperf, bison, flex,
+ libncursesw5-dev, libncurses5-dev, bison, flex,
texinfo, help2man, gawk, git, subversion, bzip2, libtool-bin
Standards-Version: 3.9.8
Homepage: http://crosstool-ng.org/
diff --git a/paths.sh.in b/paths.sh.in
new file mode 100644
index 0000000..c1ba0bd
--- /dev/null
+++ b/paths.sh.in
@@ -0,0 +1,12 @@
+export install="@INSTALL@"
+export bash="@BASH_SHELL@"
+export awk="@AWK@"
+export grep="@GREP@"
+export make="@MAKE@"
+export sed="@SED@"
+export libtool="@LIBTOOL@"
+export libtoolize="@LIBTOOLIZE@"
+export objcopy="@OBJCOPY@"
+export objdump="@OBJDUMP@"
+export readelf="@READELF@"
+export patch="@PATCH@"