-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
executable file
·40 lines (30 loc) · 1 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env -S just --justfile
default:
just nvcheck
add pkgname:
git submodule add -b master -f ssh://[email protected]/{{pkgname}}.git
git config -f .gitmodules submodule.{{pkgname}}.ignore untracked
.scripts/sort.gitmodules.sh
git add .gitmodules && git commit -m "add '{{pkgname}}' pkg"
remove pkgname:
git rm -f {{pkgname}}
rm -rf .git/modules/{{pkgname}}
git config --remove-section submodule.{{pkgname}}
git commit -m "remove '{{pkgname}}' pkg"
init:
git submodule update --init
git submodule foreach "git config --local status.showUntrackedFiles no && git checkout master"
pull:
git submodule foreach git pull origin master
squash:
msg="$(git show -s --format=%s)" && git reset --soft HEAD~2 && git commit -m "${msg}"
publish pkgname:
cd {{pkgname}}; git push
nvcheck:
nvchecker -c nvchecker.toml -l warning --failures
nvcmp -c nvchecker.toml
update pkgname:
.scripts/update.sh {{pkgname}}
just publish {{pkgname}}
readelf elf-file:
.scripts/readelf.sh {{elf-file}}