#!/bin/bash # # ToDo: parametrize special values (HEAD VALENCE CONTENT) # unset DISPLAY; unset LUI; while [ $# -gt 0 -a "${1#-}" != "$1" ]; do case ${1} in --grm) grm=${2}; shift 2; ;; esac done source ltdb-conf.bash mkdir $outdir/trees for tb in ${treebanks[@]} ; do if [ -e $tb/$TB_FILE ] || [ -e $tb/${TB_FILE}.gz ]; then tsdbhome=`dirname $tb` profile=`basename $tb` echo "Export trees from $profile in $tsdbhome" { cat 2>&1 <<- LISP ; (load "$lkbdir/src/general/loadup") ; (pushnew :lkb *features*) ; (compile-system "tsdb" :force t) (lkb::read-script-file-aux "$grammardir/lkb/script") (lkb::lkb-load-lisp "." "patch-html.lsp") (tsdb::tsdb :home "$tsdbhome") (tsdb::export-htmls "$profile" :path "$outdir/trees") (format t "~%All Done!~%") #+allegro (excl:exit) #+sbcl (sb-ext:quit) LISP } | ${LOGONROOT}/bin/logon --binary -I base -locale ja_JP.UTF-8 else echo "Couldn't find treebank at $tb" fi done cp -rp $outdir/trees $HTML_DIR/. cp $lkbdir/src/tsdb/css/*.css $HTML_DIR/. cp $lkbdir/src/tsdb/js/*.js $HTML_DIR/. ### All done echo echo "Done: take a look at http://localhost/~$USERNAME/cgi-bin/$version/list.cgi" echo