diff options
-rw-r--r-- | meta/recipes-extended/grep/grep_2.21.bb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/recipes-extended/grep/grep_2.21.bb b/meta/recipes-extended/grep/grep_2.21.bb index 3661098c51..c51147b574 100644 --- a/meta/recipes-extended/grep/grep_2.21.bb +++ b/meta/recipes-extended/grep/grep_2.21.bb | |||
@@ -23,11 +23,13 @@ do_configure_prepend () { | |||
23 | 23 | ||
24 | do_install () { | 24 | do_install () { |
25 | autotools_do_install | 25 | autotools_do_install |
26 | install -d ${D}${base_bindir} | 26 | if [ "${base_bindir}" != "${bindir}" ]; then |
27 | mv ${D}${bindir}/grep ${D}${base_bindir}/grep | 27 | install -d ${D}${base_bindir} |
28 | mv ${D}${bindir}/egrep ${D}${base_bindir}/egrep | 28 | mv ${D}${bindir}/grep ${D}${base_bindir}/grep |
29 | mv ${D}${bindir}/fgrep ${D}${base_bindir}/fgrep | 29 | mv ${D}${bindir}/egrep ${D}${base_bindir}/egrep |
30 | rmdir ${D}${bindir}/ | 30 | mv ${D}${bindir}/fgrep ${D}${base_bindir}/fgrep |
31 | rmdir ${D}${bindir}/ | ||
32 | fi | ||
31 | } | 33 | } |
32 | 34 | ||
33 | inherit update-alternatives | 35 | inherit update-alternatives |