URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
[/] [minsoc/] [trunk/] [prj/] [scripts/] [simverilog.sh] - Diff between revs 104 and 108
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 104 |
Rev 108 |
Line 4... |
Line 4... |
MINSOC_DIR=`pwd`/..
|
MINSOC_DIR=`pwd`/..
|
|
|
PROJECT=$1
|
PROJECT=$1
|
OUTPUT=$2
|
OUTPUT=$2
|
|
|
|
ENV=`uname -o`
|
|
|
|
function adaptpath
|
|
{
|
|
if [ "$ENV" == "Cygwin" ]
|
|
then
|
|
local cygpath=`cygpath -w $1`
|
|
local result=`echo $cygpath | sed 's/\\\\/\\//g'`
|
|
echo "$result"
|
|
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 21... |
Line 35... |
|
|
source $PROJECT
|
source $PROJECT
|
|
|
for dir in "${PROJECT_DIR[@]}"
|
for dir in "${PROJECT_DIR[@]}"
|
do
|
do
|
echo "+incdir+$MINSOC_DIR/$dir" >> $OUTPUT
|
adapted_dir=`adaptpath $MINSOC_DIR/$dir`
|
|
echo "+incdir+$adapted_dir" >> $OUTPUT
|
done
|
done
|
|
|
for file in "${PROJECT_SRC[@]}"
|
for file in "${PROJECT_SRC[@]}"
|
do
|
do
|
FOUND=0
|
FOUND=0
|
|
|
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
|
echo "$MINSOC_DIR/$dir/$file" >> $OUTPUT
|
adapted_file=`adaptpath $MINSOC_DIR/$dir/$file`
|
|
echo "$adapted_file" >> $OUTPUT
|
FOUND=1
|
FOUND=1
|
break
|
break
|
fi
|
fi
|
done
|
done
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.