##// END OF EJS Templates
fixed mistake on linklibs.sh script.
jeandet -
r136:217245b6ebff alexis
parent child
Show More
@@ -1,68 +1,68
1 1 echo "======================================================================================="
2 2 echo "---------------------------------------------------------------------------------------"
3 3 echo " LPP's GRLIB GLOBAL PATCHER "
4 4 echo " Copyright (C) 2013 Laboratory of Plasmas Physic. "
5 5 echo "======================================================================================="
6 6 echo '------------------------------------------------------------------------------
7 7 -- This file is a part of the LPP VHDL IP LIBRARY
8 8 -- Copyright (C) 2009 - 2010, Laboratory of Plasmas Physic - CNRS
9 9 --
10 10 -- This program is free software; you can redistribute it and/or modify
11 11 -- it under the terms of the GNU General Public License as published by
12 12 -- the Free Software Foundation; either version 3 of the License, or
13 13 -- (at your option) any later version.
14 14 --
15 15 -- This program is distributed in the hope that it will be useful,
16 16 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
17 17 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 18 -- GNU General Public License for more details.
19 19 --
20 20 -- You should have received a copy of the GNU General Public License
21 21 -- along with this program; if not, write to the Free Software
22 22 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 23 -------------------------------------------------------------------------------'
24 24 echo
25 25 echo
26 26 echo
27 27
28 28
29 29 VHDLIB_LIB_PATH=`pwd -L`
30 30 source $VHDLIB_LIB_PATH/scripts/lpp_bash_functions.sh
31 31 GRLIBPATH=$1
32 32
33 33 if [ -d "$GRLIBPATH" ]; then
34 LPP_PATCHPATH=`relpath $GRLIBPATH $VHDLIB_LIB_PATH`
34 LPP_PATCHPATH=`relpath $GRLIBPATH/lib $VHDLIB_LIB_PATH`
35 35 echo $LPP_PATCHPATH
36 36 if [ -d "$GRLIBPATH/lib" ]; then
37 37 if [ -d "$GRLIBPATH/designs" ]; then
38 38 if [ -d "$GRLIBPATH/boards" ]; then
39 39
40 40 echo "Patch $1/lib/libs.txt..."
41 41 if(grep -q $LPP_PATCHPATH/lib/lpp $1/lib/libs.txt); then
42 42 echo "No need to Patch $1/lib/libs.txt..."
43 43 else
44 44 echo $LPP_PATCHPATH/lib/lpp >>$1/lib/libs.txt
45 45 fi
46 46 echo
47 47 echo
48 48 echo
49 49 else
50 50 echo "I can't find GRLIB in $1"
51 51 fi
52 52
53 53 else
54 54 echo "I can't find GRLIB in $1"
55 55 fi
56 56 else
57 57 echo "I can't find GRLIB in $1"
58 58 fi
59 59
60 60 else
61 61 echo "I can't find GRLIB in $1"
62 62 fi
63 63
64 64
65 65
66 66
67 67
68 68
General Comments 0
You need to be logged in to leave comments. Login now