#! /bin/sh

#================================================================
# winregister
# Registeration tester for various binary files on Windows
#================================================================


# set variables
LANG=C ; export LANG
LC_ALL=C ; export LC_ALL
PATH="$PATH:." ; export PATH
index="casket"
sysenc="Shift_JIS"


# register PDF documents
estindex register -ft "$sysenc" -tsuf "" -hsuf "" -msuf "" \
  -xsuf .pdf application/pdf estxdthtml "$index"


# register RTF documents
estindex register -ft "$sysenc" -tsuf "" -hsuf "" -msuf "" \
  -xsuf .rtf application/pdf estxdthtml "$index"


# register MS-Word documents
estindex register -ft "$sysenc" -tsuf "" -hsuf "" -msuf "" \
  -xsuf .doc application/msword estxdthtml "$index"


# register MS-Excel documents
estindex register -ft "$sysenc" -tsuf "" -hsuf "" -msuf "" \
  -xsuf .xls application/vnd.ms-excel estxdthtml "$index"


# register MS-PowerPoint documents
estindex register -ft "$sysenc" -tsuf "" -hsuf "" -msuf "" \
  -xsuf .ppt application/vnd.ms-powerpoint estxdthtml "$index"


# add score information
estindex relate "$index"


# exit normally
exit 0



# END OF FILE
