install.sh 1.02 KB
Newer Older
1 2 3 4 5 6
#!/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
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
7
        echo "You need to specify installation root"
8 9 10 11 12 13
        exit 1
fi
install -d -v $1/usr/local/verilog/
install -d -v $1/usr/local/bin/
install -v -m 0755 $SCRIPTPATH/py393/*.py $1/usr/local/bin/

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
14
install -v -m 0644 $SCRIPTPATH/*.bit $1/usr/local/verilog/
15 16 17 18

install -v -m 0644 $SCRIPTPATH/system_defines.vh $1/usr/local/verilog/
install -v -m 0644 $SCRIPTPATH/includes/x393_parameters.vh $1/usr/local/verilog/
install -v -m 0644 $SCRIPTPATH/includes/x393_localparams.vh $1/usr/local/verilog/
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
19
install -v -m 0644 $SCRIPTPATH/py393/hargs      $1/usr/local/verilog/
20
install -v -m 0644 $SCRIPTPATH/py393/hargs-auto $1/usr/local/verilog/
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
21 22 23
install -v -m 0644 $SCRIPTPATH/py393/includes   $1/usr/local/verilog/
install -v -m 0644 $SCRIPTPATH/py393/startup5   $1/usr/local/verilog/
install -v -m 0644 $SCRIPTPATH/py393/startup14  $1/usr/local/verilog/
24 25

exit 0