mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-23 10:38:59 +00:00
removed dependency from bc
now expr is used
This commit is contained in:
parent
a42567432d
commit
461b50b930
@ -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])
|
||||
|
3
src/tomb
3
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`
|
||||
|
Loading…
Reference in New Issue
Block a user