install.sh 470 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh
#http://stackoverflow.com/questions/4774054/reliable-way-for-a-bash-script-to-get-the-full-path-to-itself
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
if [ -z "$1" ]
    then
        echo "You need to specify instllation root"
        exit 1
fi
install -d -v $1/usr/local/verilog/
install -d -v $1/usr/local/bin/
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
12 13
install -v -m 0755 $SCRIPTPATH/py393sata/*.py $1/usr/local/bin/
install -v -m 0644 $SCRIPTPATH/x393_sata.bit $1/usr/local/verilog/
14 15

exit 0