changeset 869:b2bb87a9b8a1

Supply main-db path on invocation from commandline
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 10 Sep 2020 12:11:37 +0859
parents 2eaa037f35d0
children a7ae0d67edff
files s4-migrate.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/s4-migrate.sh	Thu Sep 10 11:34:42 2020 +0859
+++ b/s4-migrate.sh	Thu Sep 10 12:11:37 2020 +0859
@@ -6,7 +6,7 @@
 dst=`unset DB; [ -f $2 ] && . ./$2 && echo "${DB:-db/cgi.sq3}|$URL"`
 dstdb=${dst%\|*}
 dsturl=${dst##*\|}
-type htmlescape >/dev/null 2>&1 || . `dirname $1`/s4-funcs.sh
+type htmlescape >/dev/null 2>&1 || DB=$srcdb . `dirname $1`/s4-funcs.sh
 case "$2" in
   s4-config.sh) world=Base ;;
   *)		world=${2##*-config-}; world=${world%.*} ;;

yatex.org