File: linky

package info (click to toggle)
tcm 2.20+TSQD-6
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 22,768 kB
  • sloc: ansic: 78,527; sh: 3,618; makefile: 1,345; perl: 753; yacc: 558; lex: 257
file content (99 lines) | stat: -rwxr-xr-x 1,670 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/sh
[ ${TCM_HOME} ] || {
   echo TCM_HOME is not set. Bailing out.; exit 1
}
cd $TCM_HOME/bin

GDFILES="tgd"
DVFILES="terd tesd tcrd tssd tucd tcbd tsqd"
BVFILES="tatd tstd trpg tpsd tscd"
FVFILES="tdfd tefd tsnd"
TRILES="tgtt tfrt"
PVILES="tcpd tdpd "
TFILES="tgt ttut ttdt tfet"

# remove TCM tool executables and make softlinks
# to the tcm?? executables.
rm -f $GDFILES $DVFILES $BVFILES $FVFILES $PVILES $TRILES $TFILES


## sed removes the NT-version in Cygwin
ARCH=`uname -s | sed -e 's/_NT.*//'`


for X in $GDFILES ; do
	if [ "x$ARCH" = "xCYGWIN" ] ; then
		c="$TCM_HOME/bin/_cygwin_symlink.sh tcmgd.exe ${X}.exe"
		echo $c
		$c
	else
		ln -s tcmgd $X
	fi
done


for X in $DVFILES ; do
	if [ "x$ARCH" = "xCYGWIN" ] ; then
		c="$TCM_HOME/bin/_cygwin_symlink.sh tcmdv.exe ${X}.exe"
		echo $c
		$c
	else
		ln -s tcmdv $X
	fi
done


for X in $BVFILES ; do
	if [ "x$ARCH" = "xCYGWIN" ] ; then
		c="$TCM_HOME/bin/_cygwin_symlink.sh tcmbv.exe ${X}.exe"
		echo $c
		$c
	else
		ln -s tcmbv $X
	fi
done


for X in $FVFILES ; do
	if [ "x$ARCH" = "xCYGWIN" ] ; then
		c="$TCM_HOME/bin/_cygwin_symlink.sh tcmfv.exe ${X}.exe"
		echo $c
		$c
	else
		ln -s tcmfv $X
	fi
done


for X in $TRFILES ; do
	if [ "x$ARCH" = "xCYGWIN" ] ; then
		c="$TCM_HOME/bin/_cygwin_symlink.sh tcmtr.exe ${X}.exe"
		echo $c
		$c
	else
		ln -s tcmtr $X
	fi
done


for X in $PVFILES ; do
	if [ "x$ARCH" = "xCYGWIN" ] ; then
		c="$TCM_HOME/bin/_cygwin_symlink.sh tcmpv.exe ${X}.exe"
		echo $c
		$c
	else
		ln -s tcmpv $X
	fi
done


for X in $TFILES ; do
	if [ "x$ARCH" = "xCYGWIN" ] ; then
		c="$TCM_HOME/bin/_cygwin_symlink.sh tcmt.exe ${X}.exe"
		echo $c
		$c
	else
		ln -s tcmt $X
	fi
done