1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/helix/helix.conf
3 # Copyright (C) 2022 - 2023 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
14 HELIX_ENV="$datadir/share/helix"
15 HELIX_RUNTIME="$HELIX_ENV/runtime"
16 HELIX_GRAMMAR="$HELIX_RUNTIME/grammars"
19 echo "Deleting old install"
21 mkdir -p $HELIX_ENV/bin
22 mkdir -p $HELIX_RUNTIME
23 mkdir -p $HELIX_GRAMMAR
25 echo "Copying to $HELIX_ENV"
26 cp target/release/hx $HELIX_ENV/bin/
27 cp -r "runtime/themes" "$HELIX_RUNTIME"
28 cp -r "runtime/queries" "$HELIX_RUNTIME"
29 find "runtime/grammars" -name '*.so' -exec cp {} $HELIX_GRAMMAR/ \;
30 cp runtime/tutor $HELIX_RUNTIME
32 echo "Creating a runtime shim"
33 echo "HELIX_RUNTIME=$HELIX_RUNTIME $HELIX_ENV/bin/hx \"\${@}\"" > $root$bindir/hx
34 chmod +x $root$bindir/hx
36 hook_add postmake 2 preinstall