fix(just): move install recipes to main justfile
This commit is contained in:
parent
2dd82bb73c
commit
62f15a5685
2 changed files with 10 additions and 11 deletions
10
justfile
10
justfile
|
|
@ -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'/'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}}/{}
|
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)
|
# Uninstalls everything (requires same arguments as given to install)
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -rf {{bin-dest}} \
|
rm -rf {{bin-dest}} \
|
||||||
|
|
|
||||||
|
|
@ -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
|
# Check if required dependencies are installed on the system
|
||||||
dep-check:
|
dep-check:
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue