OpenCores
URL https://opencores.org/ocsvn/minsoc/minsoc/trunk

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [prj/] [scripts/] [xilinxprj.sh] - Blame information for rev 85

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 85 rfajardo
#!/bin/bash
2
 
3
#system workings
4
MINSOC_DIR=`pwd`/..
5
 
6
PROJECT=$1
7
SRC_OUTPUT=$2
8
TOP_MODULE=$3
9
 
10
if [ ! -f $PROJECT ]
11
then
12
    echo "Unexistent project file."
13
    exit 1
14
fi
15
 
16
if [ -z "$SRC_OUTPUT" ]
17
then
18
    echo "Third argument should be the destintion file for the source inclusions."
19
    exit 1
20
fi
21
 
22
source $PROJECT
23
 
24
for file in "${PROJECT_SRC[@]}"
25
do
26
    FOUND=0
27
 
28
    for dir in "${PROJECT_DIR[@]}"
29
    do
30
        if [ -f $MINSOC_DIR/$dir/$file ]
31
        then
32
            echo -n '`include "' >> $SRC_OUTPUT
33
            echo -n "$MINSOC_DIR/$dir/$file" >> $SRC_OUTPUT
34
            echo '"' >> $SRC_OUTPUT
35
            FOUND=1
36
        fi
37
    done
38
 
39
    if [ $FOUND != 1 ]
40
    then
41
        echo "FILE NOT FOUND"
42
        exit 1
43
    fi
44
done
45
 
46
if [ -n "$TOP_MODULE" ]
47
then
48
    for file in src/blackboxes/*.v
49
    do
50
        echo -n '`include "' >> $SRC_OUTPUT
51
        echo -n "`pwd`/$file" >> $SRC_OUTPUT
52
        echo '"' >> $SRC_OUTPUT
53
    done
54
fi

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.