summaryrefslogtreecommitdiff
path: root/Dragon/data/TEST_GEO_hex_sect_tspc.access
blob: aebf920a6749394d5a1f94fde6386df1d8246cd2 (plain)
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
#!/bin/sh
if [ $# = 0 ]
   then
   echo "usage: TEST_GEO_hex_sect_tspc.access directory" 1>&2
   exit 1
fi
MACH=`uname -s`
Sysx="`echo $MACH | cut -b -6`"
if [ $Sysx = "CYGWIN" ]; then
   MACH=`uname -o`
elif [ $Sysx = "Darwin" ]; then
   MACH=`uname -sm | sed 's/[ ]/_/'`
elif [ $Sysx = "SunOS" ]; then
   MACH=`uname -sm | sed 's/[ ]/_/'`
fi
if [ "$MACH" = "Linux" -o "$MACH" = "OSF1" -o "$MACH" = "Cygwin" -o "$MACH" = "SunOS_i86pc" \
-o "$MACH" = "Darwin_i386" -o "$MACH" = "Darwin_x86_64" -o "$MACH" = "Darwin_arm64" \
-o "$MACH" = "Linux_aarch64" ]
then 
  echo 'use little endian libraries'
  pos=$1/../../libraries/l_endian
else
  echo 'use big endian libraries'
  pos=$1/../../libraries/b_endian
fi
if [ -f "$pos"/draglibendfb7r1SHEM315_v5p1.gz ]
   then
    echo 'gunzipping DLIB_315'
    chmod 755 "$pos"
    gunzip "$pos"/draglibendfb7r1SHEM315_v5p1.gz
fi
if [ -f "$pos"/draglibendfb7r1SHEM315_v5p1 ]
   then
    ln -s "$pos"/draglibendfb7r1SHEM315_v5p1 DLIB_315 
fi
ln -s "$1"/data/TEST_GEO_hex_sect_tspc_proc/ALFRED_1cell.dat .
ln -s "$1"/data/TEST_GEO_hex_sect_tspc_proc/ALFRED_1cell_sect.dat .
ls -l
echo "TEST_GEO_hex_sect_tspc.access script terminated"