#!/bin/sh
CWD=$PWD
test "$CWD" = "/" || CWD=${PWD}/
PATH=${CWD}bin:${CWD}usr/bin:${PATH}
TARGET=x86_64-linux
   CPU=$(uname -i|tr '[:upper:]' '[:lower:]')
    OS=$(uname -s|tr '[:upper:]' '[:lower:]')
set -- ${CWD}usr/bin/../lib/texmf/bin/*
test "${TARGET}" = "${CPU}-${OS}" -o $# -eq 1 || exit 0
ln -sf ../lib/texmf/bin/x86_64-linux/t4ht ${CWD}usr/bin/t4ht || true
ln -sf ../lib/texmf/bin/x86_64-linux/tex4ht ${CWD}usr/bin/tex4ht || true
