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

Subversion Repositories minsoc

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

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

Line No. Rev Author Line
1 104 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
echo -n "" > $OUTPUT
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 "$MINSOC_DIR/$dir/$file" >> $OUTPUT
33
            FOUND=1
34
            break
35
        fi
36
    done
37
 
38
    if [ $FOUND != 1 ]
39
    then
40
        echo "FILE NOT FOUND"
41
        exit 1
42
    fi
43
done

powered by: WebSVN 2.1.0

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