Add grub-mkconfig support for NetBSD.

This commit is contained in:
Grégoire Sutre 2010-04-19 21:25:41 +02:00
parent bc4a2d832b
commit 0d2c20c6f1
5 changed files with 106 additions and 1 deletions

View file

@ -31,6 +31,12 @@ if test "x$grub_mkrelpath" = x; then
grub_mkrelpath=${bindir}/`echo grub-mkrelpath | sed ${transform}`
fi
if $(which gettext >/dev/null 2>/dev/null) ; then
gettext="gettext"
else
gettext="echo"
fi
grub_warn ()
{
echo "Warning: $@" >&2
@ -190,5 +196,5 @@ version_find_latest ()
}
gettext_quoted () {
gettext "$@" | sed "s/'/'\\\\''/g"
$gettext "$@" | sed "s/'/'\\\\''/g"
}