initial justfiles

This commit is contained in:
Valerie Wolfe 2024-06-14 11:24:46 -04:00
parent 47a05b4508
commit 64deaeaece
5 changed files with 56 additions and 0 deletions

17
justfile Normal file
View file

@ -0,0 +1,17 @@
alias b := build
alias i := install
build TARGET:
just -f "{{TARGET}}/justfile" build
install TARGET=all DIR="~/.bin/":
if {{TARGET}} = all {
just install scripts {{DIR}}
just install mkwin {{DIR}}
just install path-convert {{DIR}}
just install qdls {{DIR}}
} else {
dir=`realpath {{DIR}}` && just -f "{{TARGET}}/justfile" install "$dir"
}

10
mkwin/justfile Normal file
View file

@ -0,0 +1,10 @@
alias b := build
alias i := install
build:
cargo build --release
install DIR: build
cp ./target/release/mkwin "{{DIR}}/mkwin"

10
path-convert/justfile Normal file
View file

@ -0,0 +1,10 @@
alias b := build
alias i := install
build:
cargo build --release
install DIR: build
cp ./target/release/path-convert "{{DIR}}/path-convert"

10
qdls/justfile Normal file
View file

@ -0,0 +1,10 @@
alias b := build
alias i := install
build:
dos dotnet warp
install DIR: build
mv qdls.exe {{DIR}}/qdls

9
scripts/justfile Normal file
View file

@ -0,0 +1,9 @@
alias i := install
install DIR="~/.bin":
cp dos.sh {{DIR}}/dos
cp elevate.sh {{DIR}}/elevate
cp explorer.sh {{DIR}}/explorer
cp terminal.sh {{DIR}}/terminal