From 461b50b930182938c3a1d2990dc871672cd7f714 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Thu, 28 Apr 2011 13:03:46 +0200 Subject: [PATCH] removed dependency from bc now expr is used --- configure.ac | 5 ----- src/tomb | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 106a6c1..d62f612 100644 --- 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 index e7a47d6..88f8736 100755 --- 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`