* added python-wheel (0.42.0) - The official binary distribution format for Python
[t2sde.git] / package / editors / helix / helix.conf
blobaaeb2878b420f243f0653bfe3f1324b95d6eaa06
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/helix/helix.conf
3 # Copyright (C) 2022 - 2023 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
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 ---
12 cargoinstopt=
14 HELIX_ENV="$datadir/share/helix"
15 HELIX_RUNTIME="$HELIX_ENV/runtime"
16 HELIX_GRAMMAR="$HELIX_RUNTIME/grammars"
18 preinstall() {
19         echo "Deleting old install"
20         rm -rf $HELIX_ENV
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
31         
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