install.sh 1.31 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
        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/
13
install -v -m 0755 $SCRIPTPATH/cocotb/socket_command.py $1/usr/local/bin/
14

15 16 17 18 19
install -d -v $1/www/pages/
install -v -m 0755 $SCRIPTPATH/py393/imgsrv.py $1/www/pages/
#unistall
rm $1/usr/local/bin/imgsrv.py

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
20
install -v -m 0644 $SCRIPTPATH/*.bit $1/usr/local/verilog/
21 22 23 24

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/
25
install -v -m 0644 $SCRIPTPATH/includes/x393_cur_params_target.vh $1/usr/local/verilog/
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
26
install -v -m 0644 $SCRIPTPATH/py393/hargs      $1/usr/local/verilog/
27
install -v -m 0644 $SCRIPTPATH/py393/hargs-auto $1/usr/local/verilog/
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
28 29 30
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/
31 32

exit 0