#!/bin/sh no_tags= # set no_tags to -G to exclude SGML tags from index stem_case=1 # change stem_case to change stemming/casefold: # -s 0 = no casefold or stemming # -s 1 = casefold, no stemming # -s 2 = stemming, no casefold # -s 3 = stemming and casefold PATH=/usr/local/mg-1.2/bin:$PATH # if MG 1.2 is located somewhere else, change this appropriately source="make_name_file bonap96a.txt" # set source to collection text generation command + arguments text=bonapnames # set text to name of collection dir=/bwg/bonapnames # change dir to explicit directory of collection # if script is not in the same dir as the collection # or if script may not be executed from the collection directory # make generated files have 777 permission so # future users can regenerate the collection w/o # having to chown or chmod umask 000 set -ex # script exits if any of the following fail, print commands cd ${dir} touch ${text}.rebuilding ${source} | mg_passes ${no_tags} -s ${stem_case} -T1 -I1 -t 1 -d . -f ${text} mg_compression_dict -d . -f ${text} mg_perf_hash_build -d . -f ${text} ${source} | mg_passes ${no_tags} -s ${stem_case} -T2 -I2 -t 1 -d . -f ${text} mg_weights_build -d . -f ${text} mg_invf_dict -d . -f ${text} mg_fast_comp_dict -d . -f ${text} rm ${text}.rebuilding /bwg/bin/mgcoll_clean ${text}