removed dependency from bc

now expr is used
This commit is contained in:
Jaromil 2011-04-28 13:03:46 +02:00
parent a42567432d
commit 461b50b930
2 changed files with 1 additions and 7 deletions

View File

@ -85,11 +85,6 @@ if test "x$have_sudo" = "xno"; then
AC_MSG_ERROR([*** sudo required!])
fi
AC_CHECK_PROG(have_bc,bc,yes,no)
if test "x$have_bc" = "xno"; then
AC_MSG_ERROR([*** bc required!])
fi
PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.16], :,
AC_MSG_ERROR([*** Gtk+2 >=2.16 development files not found!]))
AC_SUBST([GTK2_CFLAGS])

View File

@ -426,8 +426,7 @@ mount_tomb() {
fi
# save date of mount in minutes since 1970
mapdate="`date +%s`"
mapdate="`echo ${mapdate}/60 | bc -l | cut -d. -f1`"
mapdate="expr `date +%s` / 60"
mapper="tomb.${tombname}.${mapdate}.`basename $nstloop`"
keyname=`basename $tombkey | cut -d. -f1`