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