projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
duplicity: clarify comments about duplicity versions compatibility
[matthijs/upstream/backupninja.git]
/
lib
/
tools.in
diff --git
a/lib/tools.in
b/lib/tools.in
index 90df264566d7ad2055af38883bdfde4371f5b0b5..37fa2129105ede12e8da22113870056e32a4297b 100644
(file)
--- a/
lib/tools.in
+++ b/
lib/tools.in
@@
-1,4
+1,5
@@
#!@BASH@
#!@BASH@
+# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
# This file contains functions shared between ninjahelper and backupninja.
# This file contains functions shared between ninjahelper and backupninja.
@@
-14,7
+15,7
@@
function maketemp() {
local tempfile=`mktemp /tmp/$1.XXXXXXXX`
else
DATE=`date`
local tempfile=`mktemp /tmp/$1.XXXXXXXX`
else
DATE=`date`
- sectmp=`echo $DATE |
/usr/bin/md5sum
| cut -d- -f1`
+ sectmp=`echo $DATE |
@MD5SUM@
| cut -d- -f1`
local tempfile=/tmp/$1.$sectmp
fi
echo $tempfile
local tempfile=/tmp/$1.$sectmp
fi
echo $tempfile
@@
-38,7
+39,7
@@
function setsection() {
#
function getconf() {
CURRENT_PARAM=$1
#
function getconf() {
CURRENT_PARAM=$1
- ret=`
awk
-f $libdirectory/parseini S=$CURRENT_SECTION P=$CURRENT_PARAM $CURRENT_CONF_FILE`
+ ret=`
@AWK@
-f $libdirectory/parseini S=$CURRENT_SECTION P=$CURRENT_PARAM $CURRENT_CONF_FILE`
# if nothing is returned, set the default
if [ "$ret" == "" -a "$2" != "" ]; then
ret="$2"
# if nothing is returned, set the default
if [ "$ret" == "" -a "$2" != "" ]; then
ret="$2"