initial justfiles
This commit is contained in:
parent
47a05b4508
commit
64deaeaece
5 changed files with 56 additions and 0 deletions
17
justfile
Normal file
17
justfile
Normal 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
10
mkwin/justfile
Normal 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
10
path-convert/justfile
Normal 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
10
qdls/justfile
Normal 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
9
scripts/justfile
Normal 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
|
||||
|
Loading…
Reference in a new issue