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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [bin/] [xtwi] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 22 wfjm
#!/bin/bash
2
# $Id: xtwi 544 2013-11-10 22:42:16Z mueller $
3
#
4
# Xilinx Tool Wrapper script for ISE:
5
#   define XTWI_PATH
6
#   usage  xwti 
7
#
8
#  Revision History:
9
# Date         Rev Version  Comment
10
# 2013-10-12   539   1.0    Initial version
11
#
12
# Note: For Xilinx ISE installations with an install path  holds
13
#         /ISE_DS        dir with settings(32|64).sh
14
#         /ISE_DS/ISE    XILINX env var will point here
15
#
16
 
17
# store arg list on vars (will be dropped later to source scripts)
18
arglist_val=$@
19
arglist_num=$#
20
#
21
# check whether ISE already setup ($XILINX defined)
22
if [ -z "$XILINX" ]
23
then
24
  # check whether $XTWI_PATH defined
25
  if [ -z "$XTWI_PATH" ]
26
  then
27
    echo "XTWI_PATH not defined"
28
    exit 1
29
  fi
30
 
31
  # check whether 32 or 64 bit system (uname -m gives 'i686' or 'x86_64')
32
  if [ `uname -m` = "x86_64" ]
33
  then
34
    settings_filename=$XTWI_PATH/ISE_DS/settings64.sh
35
  else
36
    settings_filename=$XTWI_PATH/ISE_DS/settings32.sh
37
  fi
38
  if [ ! -e "$settings_filename" ]
39
  then
40
    echo "can't locate init script '$settings_filename'"
41
    exit 1
42
  fi
43
 
44
  # drop arg list, suppress output
45
  set --
46
  . $settings_filename > /dev/null
47
 
48
  # check that XILINX defined
49
  if [ -z "$XILINX" ]
50
  then
51
    echo "Failed to setup XILINX"
52
    exit 1
53
  fi
54
 
55
else
56
  echo "XILINX already defined"
57
fi
58
 
59
if [ $arglist_num != 0 ]
60
then
61
  exec $arglist_val
62
fi

powered by: WebSVN 2.1.0

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