install.sh 1.23 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/

14 15 16 17 18
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
19
install -v -m 0644 $SCRIPTPATH/*.bit $1/usr/local/verilog/
20 21 22 23

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

exit 0