+}
+
+CleanCurinfo () {
+ [ "xyes" = "x${DebugMode}" ] && set -x
+ (cd ${VarDir} >/dev/null 2>&1) || return $?
+ cd ${VarDir}
+ InfoFileBase=`echo $InfoFile | sed -e 's%.*/%%g'`
+
+ TmpSrc=$InfoFileBase.orig.$$
+ TmpDest=$InfoFileBase.new.$$
+ rm -f ${TmpSrc} ${TmpDest}
+ amadmin${SUF} ${Config} export > ${TmpSrc} || return $?
+ log `_ '%s: preserving original database in %s (exported).' "$0" "${TmpSrc}"`
+ CleanCurinfo_internal < ${TmpSrc} > ${TmpDest} || return $?