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

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [verilator/] [prj/] [scripts/] [simverilog.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
OUTPUT=$2
8
 
9
if [ ! -f $PROJECT ]
10
then
11
    echo "Unexistent project file."
12
    exit 1
13
fi
14
 
15
if [ -z "$OUTPUT" ]
16
then
17
    echo "Second argument should be the destintion file for the file and directory inclusions."
18
    exit 1
19
fi
20 88 rfajardo
echo -n "" > $OUTPUT
21 85 rfajardo
 
22
source $PROJECT
23
 
24
for dir in "${PROJECT_DIR[@]}"
25
do
26
    echo "+incdir+$MINSOC_DIR/$dir" >> $OUTPUT
27
done
28
 
29
for file in "${PROJECT_SRC[@]}"
30
do
31
    FOUND=0
32
 
33
    for dir in "${PROJECT_DIR[@]}"
34
    do
35
        if [ -f $MINSOC_DIR/$dir/$file ]
36
        then
37
            echo "$MINSOC_DIR/$dir/$file" >> $OUTPUT
38
            FOUND=1
39
        fi
40
    done
41
 
42
    if [ $FOUND != 1 ]
43
    then
44
        echo "FILE NOT FOUND"
45
        exit 1
46
    fi
47
done

powered by: WebSVN 2.1.0

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