mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-09 14:32:52 +00:00
scripts/xldd: fix version string
The version string was hard-coded. Now, the version string follows the crosstool-NG version. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
727612bcf6
commit
b36267c6a6
@ -47,7 +47,8 @@ do_finish() {
|
|||||||
|
|
||||||
if [ "${CT_LIBC_XLDD}" = "y" ]; then
|
if [ "${CT_LIBC_XLDD}" = "y" ]; then
|
||||||
CT_DoLog EXTRA "Installing a cross-ldd helper"
|
CT_DoLog EXTRA "Installing a cross-ldd helper"
|
||||||
sed -r -e 's|@@CT_TARGET@@|'"${CT_TARGET}"'|g;' \
|
sed -r -e 's|@@CT_VERSION@@|'"${CT_VERSION}"'|g;' \
|
||||||
|
-e 's|@@CT_TARGET@@|'"${CT_TARGET}"'|g;' \
|
||||||
-e 's|@@CT_install@@|'"${install}"'|g;' \
|
-e 's|@@CT_install@@|'"${install}"'|g;' \
|
||||||
-e 's|@@CT_bash@@|'"${bash}"'|g;' \
|
-e 's|@@CT_bash@@|'"${bash}"'|g;' \
|
||||||
-e 's|@@CT_grep@@|'"${grep}"'|g;' \
|
-e 's|@@CT_grep@@|'"${grep}"'|g;' \
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# NON-CONFIGURABLE STUFF!
|
# NON-CONFIGURABLE STUFF!
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
version="@@CT_VERSION@@"
|
||||||
sed="@@CT_sed@@"
|
sed="@@CT_sed@@"
|
||||||
grep="@@CT_grep@@"
|
grep="@@CT_grep@@"
|
||||||
my_name="$( basename "${0}" )"
|
my_name="$( basename "${0}" )"
|
||||||
@ -24,7 +25,7 @@ do_opt_error() {
|
|||||||
show_version() {
|
show_version() {
|
||||||
# Fake a real ldd, just in case some dumb script would check
|
# Fake a real ldd, just in case some dumb script would check
|
||||||
cat <<_EOF_
|
cat <<_EOF_
|
||||||
ldd (crosstool-NG) 1.8.0
|
ldd (crosstool-NG) ${version}
|
||||||
Copyright (C) 2010 "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
|
Copyright (C) 2010 "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
|
||||||
This is free software; see the source for copying conditions. There is NO
|
This is free software; see the source for copying conditions. There is NO
|
||||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
Loading…
Reference in New Issue
Block a user