diff options
| author | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
|---|---|---|
| committer | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
| commit | 7dfcc480ba1e19bd3232349fc733caef94034292 (patch) | |
| tree | 03ee104eb8846d5cc1a981d267687a729185d3f3 /Dragon/data/OSC_CASEA_1level_rse.access | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Dragon/data/OSC_CASEA_1level_rse.access')
| -rwxr-xr-x | Dragon/data/OSC_CASEA_1level_rse.access | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Dragon/data/OSC_CASEA_1level_rse.access b/Dragon/data/OSC_CASEA_1level_rse.access new file mode 100755 index 0000000..ad4239a --- /dev/null +++ b/Dragon/data/OSC_CASEA_1level_rse.access @@ -0,0 +1,37 @@ +#!/bin/sh +if [ $# = 0 ] + then + echo "usage: OSC_CASEA_1level_rse.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"/draglibJef2p2Apolib99_v5p1.gz ] + then + echo 'gunzipping DLIB_99' + chmod 755 "$pos" + gunzip "$pos"/draglibJef2p2Apolib99_v5p1.gz +fi +if [ -f "$pos"/draglibJef2p2Apolib99_v5p1 ] + then + ln -s "$pos"/draglibJef2p2Apolib99_v5p1 DLIB_99 +fi +ls -l +echo "OSC_CASEA_1level_rse access script terminated" |
