diff options
author | Fabian Freyer <fabian.freyer@physik.tu-berlin.de> | 2014-08-27 00:52:18 +0200 |
---|---|---|
committer | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-08-28 22:32:17 +0200 |
commit | fd5720e6d99566c4dafb65f135039772623f232b (patch) | |
tree | 4bbc0695a45240a5910097d1f4b7845ab0e53ba0 /scripts/functions | |
parent | 22f87a8a38af52abcd25eff9e23abd1f5d753790 (diff) | |
download | crosstool-ng-fd5720e6d99566c4dafb65f135039772623f232b.tar.gz crosstool-ng-fd5720e6d99566c4dafb65f135039772623f232b.tar.bz2 crosstool-ng-fd5720e6d99566c4dafb65f135039772623f232b.zip |
scripts/crosstool-NG: use ${grep} instead of 'grep'
Helps building on BSD-like systems.
Reported-by: Fabian Freyer <fabian.freyer@physik.tu-berlin.de>
Signed-off-by: "Fabian Freyer" <fabian.freyer@physik.tu-berlin.de>
[yann.morin.1998@free.fr: split the original patch]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Fabian Freyer <fabian.freyer@physik.tu-berlin.de>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index cce629c5..a309f2d9 100644 --- a/scripts/functions +++ b/scripts/functions @@ -995,9 +995,9 @@ CT_ExtractGit() { if [ -z "${ref}" ]; then ref_type=head ref=$(git rev-list -n1 HEAD) - elif git tag |grep -E "^${ref}$" >/dev/null 2>&1; then + elif git tag |${grep} -E "^${ref}$" >/dev/null 2>&1; then ref_type=tag - elif git branch -a --no-color |grep -E "^. ${ref}$" >/dev/null 2>&1; then + elif git branch -a --no-color |${grep} -E "^. ${ref}$" >/dev/null 2>&1; then ref_type=branch elif date -d "${ref}" >/dev/null 2>&1; then ref_type=date |