tremoved dependency from bc now expr is used - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 461b50b930182938c3a1d2990dc871672cd7f714
DIR parent a42567432df4e4f52ec0671c1ed345f044b1896e
HTML Author: Jaromil <jaromil@dyne.org>
Date: Thu, 28 Apr 2011 13:03:46 +0200
removed dependency from bc
now expr is used
Diffstat:
M configure.ac | 5 -----
M src/tomb | 3 +--
2 files changed, 1 insertion(+), 7 deletions(-)
---
DIR diff --git a/configure.ac b/configure.ac
t@@ -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])
DIR diff --git a/src/tomb b/src/tomb
t@@ -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`