#! /bin/sh

# This path gets set properly by the makefile that installs this script
INSTALL_DIR=%%INSTALL_DIR%%

LIB=$INSTALL_DIR/lib

case $# in

1)	project=$1
	;;

*)	echo "usage: tmu quartus_project_name"
	exit 1
	;;

esac

cp -r $LIB/usb_portmux .
quartus_sh -t $LIB/usbportmux_gen.tcl $project
cp $project.ports fpga0.ports
