s4
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 diff
1.1 --- a/s4-migrate.sh Thu Sep 10 11:34:42 2020 +0859 1.2 +++ b/s4-migrate.sh Thu Sep 10 12:11:37 2020 +0859 1.3 @@ -6,7 +6,7 @@ 1.4 dst=`unset DB; [ -f $2 ] && . ./$2 && echo "${DB:-db/cgi.sq3}|$URL"` 1.5 dstdb=${dst%\|*} 1.6 dsturl=${dst##*\|} 1.7 -type htmlescape >/dev/null 2>&1 || . `dirname $1`/s4-funcs.sh 1.8 +type htmlescape >/dev/null 2>&1 || DB=$srcdb . `dirname $1`/s4-funcs.sh 1.9 case "$2" in 1.10 s4-config.sh) world=Base ;; 1.11 *) world=${2##*-config-}; world=${world%.*} ;;