File: linkx

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 (38 lines) | stat: -rwxr-xr-x 757 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
#!/bin/sh
[ ${TCM_HOME} ] || {
   echo TCM_HOME is not set. Bailing out.; exit 1
}
cd $TCM_HOME/bin

DFILES="tgd terd tesd tcrd tssd tsqd tucd tatd tstd trpg tpsd tdfd tefd tsnd tgtt tfrt tcpd tdpd tcbd tscd"
TFILES="tgt ttut ttdt tfet"

# remove TCM tool executables and make softlinks
# to the tcmd.exe and tcmt programs.
rm -f $TFILES $DFILES

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

for X in $DFILES ; do

	if [ "x$ARCH" = "xCYGWIN" ] ; then
		c="$TCM_HOME/bin/_cygwin_symlink.sh tcmd.exe ${X}.exe"
		echo $c
		sh $c
	else
		ln -s tcmd $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
		sh $c
	else
		ln -s tcmt $X
	fi
done