~ubuntu-branches/ubuntu/intrepid/tcm/intrepid

« back to all changes in this revision

Viewing changes to bin/linkx

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2003-07-03 20:08:21 UTC
  • Revision ID: james.westby@ubuntu.com-20030703200821-se4xtqx25e5miczi
Tags: upstream-2.20
ImportĀ upstreamĀ versionĀ 2.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
[ ${TCM_HOME} ] || {
 
3
   echo TCM_HOME is not set. Bailing out.; exit 1
 
4
}
 
5
cd $TCM_HOME/bin
 
6
 
 
7
DFILES="tgd terd tesd tcrd tssd tucd tatd tstd trpg tpsd tdfd tefd tsnd tgtt tfrt tcpd tdpd tcbd tscd"
 
8
TFILES="tgt ttut ttdt tfet"
 
9
 
 
10
# remove TCM tool executables and make softlinks
 
11
# to the tcmd.exe and tcmt programs.
 
12
rm -f $TFILES $DFILES
 
13
 
 
14
## sed removes the NT-version in Cygwin
 
15
ARCH=`uname -s | sed -e 's/_NT.*//'`
 
16
 
 
17
for X in $DFILES ; do
 
18
 
 
19
        if [ "x$ARCH" = "xCYGWIN" ] ; then
 
20
                c="$TCM_HOME/bin/_cygwin_symlink.sh tcmd.exe ${X}.exe"
 
21
                echo $c
 
22
                sh $c
 
23
        else
 
24
                ln -s tcmd $X
 
25
        fi
 
26
done
 
27
 
 
28
for X in $TFILES ; do
 
29
 
 
30
        if [ "x$ARCH" = "xCYGWIN" ] ; then
 
31
                c="$TCM_HOME/bin/_cygwin_symlink.sh tcmt.exe ${X}.exe"
 
32
                echo $c
 
33
                sh $c
 
34
        else
 
35
                ln -s tcmt $X
 
36
        fi
 
37
done
 
38