mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 20:02:32 +01:00
r3559@krups: intrigeri | 2005-11-15 15:07:17 +0100
ninjahelper & backupninja now set $libdir when bootstrapping. improved $scriptdir search, too.
This commit is contained in:
parent
bac37f747b
commit
5d63983704
@ -10,6 +10,7 @@ edit = sed \
|
||||
-e "s,@CFGDIR\@,$(CFGDIR),g" \
|
||||
-e "s,@BASH\@,$(BASH),g" \
|
||||
-e 's,@datadir\@,$(pkgdatadir),g' \
|
||||
-e "s,@libdir\@,$(pkglibdir),g" \
|
||||
-e 's,@localstatedir\@,$(localstatedir),g' \
|
||||
-e 's,@prefix\@,$(prefix),g'
|
||||
|
||||
|
@ -115,6 +115,7 @@ edit = sed \
|
||||
-e "s,@CFGDIR\@,$(CFGDIR),g" \
|
||||
-e "s,@BASH\@,$(BASH),g" \
|
||||
-e 's,@datadir\@,$(pkgdatadir),g' \
|
||||
-e "s,@libdir\@,$(pkglibdir),g" \
|
||||
-e 's,@localstatedir\@,$(localstatedir),g' \
|
||||
-e 's,@prefix\@,$(prefix),g'
|
||||
|
||||
|
@ -424,15 +424,36 @@ if [ ! -r "$conffile" ]; then
|
||||
fatal "Configuration file $conffile not found."
|
||||
fi
|
||||
|
||||
# find $scriptdir
|
||||
scriptdir=`grep scriptdirectory $conffile | awk '{print $3}'`
|
||||
if [ ! -n "$scriptdir" ]; then
|
||||
echo "Cound not find entry 'scriptdirectory' in $conffile"
|
||||
fatal "Cound not find entry 'scriptdirectory' in $conffile"
|
||||
if [ -z "$scriptdir" ]; then
|
||||
if [ -d "@datadir@" ]; then
|
||||
scriptdir="@datadir@"
|
||||
else
|
||||
echo "Could not find entry 'scriptdirectory' in $conffile"
|
||||
fatal "Could not find entry 'scriptdirectory' in $conffile"
|
||||
fi
|
||||
else
|
||||
if [ ! -d "$scriptdir" ]; then
|
||||
echo "Script directory $scriptdir not found."
|
||||
fatal "Script directory $scriptdir not found."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -d "$scriptdir" ]; then
|
||||
echo "Script directory $scriptdir not found."
|
||||
fatal "Script directory $scriptdir not found."
|
||||
# find $libdir
|
||||
libdir=`grep libdirectory $conffile | awk '{print $3}'`
|
||||
if [ -z "$libdir" ]; then
|
||||
if [ -d "@libdir@" ]; then
|
||||
libdir="@libdir@"
|
||||
else
|
||||
echo "Could not find entry 'libdirectory' in $conffile."
|
||||
fatal "Could not find entry 'libdirectory' in $conffile."
|
||||
fi
|
||||
else
|
||||
if [ ! -d "$libdir" ]; then
|
||||
echo "Lib directory $libdir not found."
|
||||
fatal "Lib directory $libdir not found."
|
||||
fi
|
||||
fi
|
||||
|
||||
setfile $conffile
|
||||
|
@ -187,24 +187,37 @@ if [ ! -r "$conffile" ]; then
|
||||
echo "Configuration file $conffile not found."
|
||||
exit 1
|
||||
fi
|
||||
# find $scriptdir
|
||||
scriptdir=`grep scriptdirectory $conffile | awk '{print $3}'`
|
||||
if [ ! -n "$scriptdir" ]; then
|
||||
echo "Cound not find entry 'scriptdirectory' in $conffile"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d "$scriptdir" ]; then
|
||||
echo "Script directory $scriptdir not found."
|
||||
exit 1
|
||||
if [ -z "$scriptdir" ]; then
|
||||
if [ -d "@datadir@" ]; then
|
||||
scriptdir="@datadir@"
|
||||
else
|
||||
echo "Could not find entry 'scriptdirectory' in $conffile"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if [ ! -d "$scriptdir" ]; then
|
||||
echo "Script directory $scriptdir not found."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
# find $libdir
|
||||
libdir=`grep libdirectory $conffile | awk '{print $3}'`
|
||||
if [ ! -n "$libdir" ]; then
|
||||
echo "Cound not find entry 'libdirectory' in $conffile"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d "$libdir" ]; then
|
||||
echo "Script directory $libdir not found."
|
||||
exit 1
|
||||
if [ -z "$libdir" ]; then
|
||||
if [ -d "@libdir@" ]; then
|
||||
libdir="@libdir@"
|
||||
else
|
||||
echo "Could not find entry 'libdirectory' in $conffile."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if [ ! -d "$libdir" ]; then
|
||||
echo "Lib directory $libdir not found."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
configdirectory=`grep configdirectory $conffile | awk '{print $3}'`
|
||||
if [ ! -n "$configdirectory" ]; then
|
||||
echo "Cound not find entry 'configdirectory' in $conffile"
|
||||
|
Loading…
Reference in New Issue
Block a user