#!/bin/bash

AD=/software/apps/altera/quartus_ii_13.0sp1
if [ $(uname -m ) == "x86_64" ]; then
	LL=linux64
else
	LL=linux
fi
QUARTUS_ROOTDIR="${AD}/quartus"
PATH="${AD}/quartus/bin:${AD}/quartus/sopc_builder/bin:${AD}/nios2eds/sdk2/bin:${AD}/nios2eds/bin:${AD}/nios2eds/bin/gnu/H-i686-pc-linux-gnu/bin:${PATH}"
LD_LIBRARY_PATH="${AD}/quartus/${LL}:${LD_LIBRARY_PATH}"

export LD_LIBRARY_PATH PATH QUARTUS_ROOTDIR

"$@"