#!/bin/sh args="" # Use the following if you don't want hardlinks #args="-s" until [ -z "$1" ] do case "$1" in # If the path begins with /, add install prefix -* ) args="$args $1" shift 1 ;; $TT_INSTALL_DIR_PREFIX/* ) args="$args $1" shift 1 ;; /* ) args="$args $TT_INSTALL_DIR_PREFIX$1" shift 1 args="$args $@" break ;; * ) args="$args $@" break ;; esac done $TT_COMMAND $args exit $?