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

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [rc-1.0/] [prj/] [scripts/] [simverilog.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
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
 
21
source $PROJECT
22
 
23
for dir in "${PROJECT_DIR[@]}"
24
do
25
    echo "+incdir+$MINSOC_DIR/$dir" >> $OUTPUT
26
done
27
 
28
for file in "${PROJECT_SRC[@]}"
29
do
30
    FOUND=0
31
 
32
    for dir in "${PROJECT_DIR[@]}"
33
    do
34
        if [ -f $MINSOC_DIR/$dir/$file ]
35
        then
36
            echo "$MINSOC_DIR/$dir/$file" >> $OUTPUT
37
            FOUND=1
38
        fi
39
    done
40
 
41
    if [ $FOUND != 1 ]
42
    then
43
        echo "FILE NOT FOUND"
44
        exit 1
45
    fi
46
done

powered by: WebSVN 2.1.0

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