commit 461b50b930182938c3a1d2990dc871672cd7f714
parent a42567432df4e4f52ec0671c1ed345f044b1896e
Author: Jaromil <jaromil@dyne.org>
Date: Thu, 28 Apr 2011 13:03:46 +0200
removed dependency from bc
now expr is used
Diffstat:
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -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])
diff --git a/src/tomb b/src/tomb
@@ -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`