nixpkgs/pkgs/by-name/dy/dyalog/dyalogscript.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
635 B
Diff
Raw Normal View History

2024-03-22 16:45:51 +00:00
diff --git a/scriptbin/dyalogscript b/scriptbin/dyalogscript
index c99912738ec2..adeda1fe964e 100755
2023-09-26 20:36:39 +00:00
--- a/scriptbin/dyalogscript
+++ b/scriptbin/dyalogscript
2024-03-22 16:45:51 +00:00
@@ -2,7 +2,7 @@
#set -x
## DO NOT CHANGE THIS FILE
-INSTALLDIR="/opt/mdyalog/19.0/64/unicode"
2023-09-26 20:36:39 +00:00
+INSTALLDIR="@installdir@"
2024-03-22 16:45:51 +00:00
EXE="dyalog"
ARGS=""
@@ -46,7 +46,7 @@ fi
# OPTS="$OPTS RIDE_INIT=$RIDE_INIT"
#fi
2023-09-26 20:36:39 +00:00
-: ${SCRIPTDIR:=$INSTALLDIR}
+SCRIPTDIR="@scriptdir@"
2024-03-22 16:45:51 +00:00
export LD_LIBRARY_PATH=${SCRIPTDIR}:${LD_LIBRARY_PATH}
eval "${SCRIPTDIR}/${EXE}" APLKEYS=\"$INSTALLDIR/aplkeys\" APLTRANS=\"$INSTALLDIR/apltrans\" ${APLT} ${APLK} $OPTS -script \"$SCRIPT\" "$ARGS"