#!/usr/local/bin/bash

gBinPath=$(dirname "$0")
if [ -d "${gBinPath}/office6" ]; then
	gInstallPath=${gBinPath}
else
	gInstallPath=/compat/linux/opt/kingsoft/wps-office
fi

gApp=wpspdf

function run()
{

	if [ -e "${gInstallPath}/office6/${gApp}" ] ; then
		{ ${gInstallPath}/office6/${gApp} "$@"; } >/dev/null 2>&1
	else
		echo "${gApp} does not exist!"
	fi
}

function main()
{
	run "$@"
	exit 0
}

main "$@"
