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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [prj/] [scripts/] [xilinxprj.sh] - Diff between revs 91 and 108

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 91 Rev 108
Line 5... Line 5...
 
 
PROJECT=$1
PROJECT=$1
SRC_OUTPUT=$2
SRC_OUTPUT=$2
TOP_MODULE=$3
TOP_MODULE=$3
 
 
 
ENV=`uname -o`
 
 
 
function adaptpath
 
{
 
    if [ "$ENV" == "Cygwin" ]
 
    then
 
        local cygpath=`cygpath -w $1`
 
        echo "$cygpath"
 
    else
 
        echo "$1"
 
    fi
 
}
 
 
if [ ! -f $PROJECT ]
if [ ! -f $PROJECT ]
then
then
    echo "Unexistent project file."
    echo "Unexistent project file."
    exit 1
    exit 1
fi
fi
Line 28... Line 41...
 
 
    for dir in "${PROJECT_DIR[@]}"
    for dir in "${PROJECT_DIR[@]}"
    do
    do
        if [ -f $MINSOC_DIR/$dir/$file ]
        if [ -f $MINSOC_DIR/$dir/$file ]
        then
        then
 
            adapted_file=`adaptpath $MINSOC_DIR/$dir/$file`
            echo -n '`include "' >> $SRC_OUTPUT
            echo -n '`include "' >> $SRC_OUTPUT
            echo -n "$MINSOC_DIR/$dir/$file" >> $SRC_OUTPUT
            echo -n "$adapted_file" >> $SRC_OUTPUT
            echo '"' >> $SRC_OUTPUT
            echo '"' >> $SRC_OUTPUT
            FOUND=1
            FOUND=1
            break
            break
        fi
        fi
    done
    done
Line 47... Line 61...
 
 
if [ -n "$TOP_MODULE" ]
if [ -n "$TOP_MODULE" ]
then
then
    for file in src/blackboxes/*.v
    for file in src/blackboxes/*.v
    do
    do
 
        dir=`pwd`
 
        adapted_file=`adaptpath $dir/$file`
        echo -n '`include "' >> $SRC_OUTPUT
        echo -n '`include "' >> $SRC_OUTPUT
        echo -n "`pwd`/$file" >> $SRC_OUTPUT
        echo -n "$adapted_file" >> $SRC_OUTPUT
        echo '"' >> $SRC_OUTPUT
        echo '"' >> $SRC_OUTPUT
    done
    done
fi
fi
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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