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

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [rc-1.0/] [prj/] [scripts/] [xilinxprj.sh] - Blame information for rev 88

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 88 rfajardo
echo -n "" > $SRC_OUTPUT
22 85 rfajardo
 
23
source $PROJECT
24
 
25
for file in "${PROJECT_SRC[@]}"
26
do
27
    FOUND=0
28
 
29
    for dir in "${PROJECT_DIR[@]}"
30
    do
31
        if [ -f $MINSOC_DIR/$dir/$file ]
32
        then
33
            echo -n '`include "' >> $SRC_OUTPUT
34
            echo -n "$MINSOC_DIR/$dir/$file" >> $SRC_OUTPUT
35
            echo '"' >> $SRC_OUTPUT
36
            FOUND=1
37
        fi
38
    done
39
 
40
    if [ $FOUND != 1 ]
41
    then
42
        echo "FILE NOT FOUND"
43
        exit 1
44
    fi
45
done
46
 
47
if [ -n "$TOP_MODULE" ]
48
then
49
    for file in src/blackboxes/*.v
50
    do
51
        echo -n '`include "' >> $SRC_OUTPUT
52
        echo -n "`pwd`/$file" >> $SRC_OUTPUT
53
        echo '"' >> $SRC_OUTPUT
54
    done
55
fi

powered by: WebSVN 2.1.0

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