# HG changeset patch # User HIROSE Yuuji # Date 1599707524 -32373 # Node ID b2bb87a9b8a1cd269c7ec3d3b942fdd48760c0a1 # Parent 2eaa037f35d07e9d06f86fccbdf50e2ce5b791db Supply main-db path on invocation from commandline diff -r 2eaa037f35d0 -r b2bb87a9b8a1 s4-migrate.sh --- 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%.*} ;;