fix(just): move install recipes to main justfile

This commit is contained in:
Michael Aaron Murphy 2024-04-01 15:58:50 +02:00
parent 2dd82bb73c
commit 62f15a5685
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
2 changed files with 10 additions and 11 deletions

View file

@ -66,6 +66,16 @@ install: install-desktop-entries (install-bin bin-src bin-dest) (install-file me
find 'resources'/'default_schema' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} install -Dm0644 'resources'/'default_schema'/{} {{default-schema-target}}/{}
find 'resources'/'icons' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} install -Dm0644 'resources'/'icons'/{} {{iconsdir}}/{}
[private]
install-cmd options src dest:
install {{options}} {{src}} {{dest}}
[private]
install-bin src dest: (install-cmd '-Dm0755' src dest)
[private]
install-file src dest: (install-cmd '-Dm0644' src dest)
# Uninstalls everything (requires same arguments as given to install)
uninstall:
rm -rf {{bin-dest}} \

View file

@ -1,14 +1,3 @@
# Installation command
[no-cd, private]
install-cmd options src dest:
install {{options}} {{src}} {{dest}}
[no-cd, private]
install-bin src dest: (install-cmd '-Dm0755' src dest)
[no-cd, private]
install-file src dest: (install-cmd '-Dm0644' src dest)
# Check if required dependencies are installed on the system
dep-check:
#!/bin/sh