;just: show some group headings; cleanup
This commit is contained in:
parent
5798a73a96
commit
4333694bd3
58
justfile
58
justfile
@ -193,17 +193,10 @@ BUILDFLAGS := '-rtsopts ' + WARNINGS + GHCLOWMEMFLAGS + CABALMACROSFLAGS + ' -DD
|
|||||||
TIME := "{{ shell date +'%Y%m%d%H%M' }}"
|
TIME := "{{ shell date +'%Y%m%d%H%M' }}"
|
||||||
MONTHYEAR := "{{ shell date +'%B %Y' }}"
|
MONTHYEAR := "{{ shell date +'%B %Y' }}"
|
||||||
|
|
||||||
# ** misc
|
|
||||||
|
|
||||||
# sym-link some directories required by hledger-web dev builds
|
|
||||||
mkwebdirs:
|
|
||||||
echo "#ln -sf hledger-web/config # disabled, causes makeinfo warnings"
|
|
||||||
ln -sf hledger-web/messages
|
|
||||||
ln -sf hledger-web/static
|
|
||||||
ln -sf hledger-web/templates
|
|
||||||
|
|
||||||
# ** GHCI
|
# ** GHCI
|
||||||
|
|
||||||
|
GHCI:
|
||||||
|
|
||||||
# run GHCI on hledger-lib + hledger
|
# run GHCI on hledger-lib + hledger
|
||||||
@ghci:
|
@ghci:
|
||||||
{{ STACKGHCI }} exec -- {{ GHCI }} {{ BUILDFLAGS }} hledger/Hledger/Cli.hs
|
{{ STACKGHCI }} exec -- {{ GHCI }} {{ BUILDFLAGS }} hledger/Hledger/Cli.hs
|
||||||
@ -250,6 +243,8 @@ mkwebdirs:
|
|||||||
|
|
||||||
# ** ghcid
|
# ** ghcid
|
||||||
|
|
||||||
|
GHCID:
|
||||||
|
|
||||||
# run ghcid on hledger-lib + hledger
|
# run ghcid on hledger-lib + hledger
|
||||||
@ghcid:
|
@ghcid:
|
||||||
ghcid -c 'just ghci'
|
ghcid -c 'just ghci'
|
||||||
@ -325,7 +320,9 @@ ghcid-shake:
|
|||||||
# dev-heap-upload:
|
# dev-heap-upload:
|
||||||
# curl -F "file=@devprof-hc.hp" -F "title='hledger parser'" http://heap.ezyang.com/upload
|
# curl -F "file=@devprof-hc.hp" -F "title='hledger parser'" http://heap.ezyang.com/upload
|
||||||
# curl -F "file=@devprof-hr.hp" -F "title='hledger parser'" http://heap.ezyang.com/upload
|
# curl -F "file=@devprof-hr.hp" -F "title='hledger parser'" http://heap.ezyang.com/upload
|
||||||
# ** special builds
|
# ** building
|
||||||
|
|
||||||
|
BUILDING:
|
||||||
|
|
||||||
# build the hledger package showing GHC codegen times/allocations
|
# build the hledger package showing GHC codegen times/allocations
|
||||||
@buildtimes:
|
@buildtimes:
|
||||||
@ -349,6 +346,9 @@ ghcid-shake:
|
|||||||
# hledgercov:
|
# hledgercov:
|
||||||
# {{ STACK }} ghc {{ MAIN }} -fhpc -o bin/hledgercov -outputdir .hledgercovobjs {{ BUILDFLAGS }}
|
# {{ STACK }} ghc {{ MAIN }} -fhpc -o bin/hledgercov -outputdir .hledgercovobjs {{ BUILDFLAGS }}
|
||||||
# ** installing
|
# ** installing
|
||||||
|
|
||||||
|
INSTALLING:
|
||||||
|
|
||||||
# # copy the current ~/.local/bin/hledger to bin/old/hledger-VER
|
# # copy the current ~/.local/bin/hledger to bin/old/hledger-VER
|
||||||
# @copy-as VER:
|
# @copy-as VER:
|
||||||
# cp ~/.local/bin/hledger bin/old/hledger-{{ VER }}; echo "bin/hledger-{{ VER }}"
|
# cp ~/.local/bin/hledger bin/old/hledger-{{ VER }}; echo "bin/hledger-{{ VER }}"
|
||||||
@ -363,14 +363,10 @@ ghcid-shake:
|
|||||||
# # update shell completions in hledger package
|
# # update shell completions in hledger package
|
||||||
# shellcompletions:
|
# shellcompletions:
|
||||||
# make -C hledger/shell-completion/ clean-all all
|
# make -C hledger/shell-completion/ clean-all all
|
||||||
# ** pushing
|
|
||||||
|
|
||||||
# push to github CI, wait for tests to pass, then push to master
|
|
||||||
@push:
|
|
||||||
tools/push
|
|
||||||
|
|
||||||
# ** releasing
|
# ** releasing
|
||||||
|
|
||||||
|
RELEASING:
|
||||||
|
|
||||||
# Symlink/copy important files temporarily in .relfiles/.
|
# Symlink/copy important files temporarily in .relfiles/.
|
||||||
relfiles:
|
relfiles:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
@ -477,6 +473,13 @@ _gitSwitchAutoCreate BRANCH:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# ** misc
|
# ** misc
|
||||||
|
|
||||||
|
MISC:
|
||||||
|
|
||||||
|
# push to github CI, wait for tests to pass, then push to master
|
||||||
|
@push:
|
||||||
|
tools/push
|
||||||
|
|
||||||
# run some tests to validate the development environment
|
# run some tests to validate the development environment
|
||||||
# check-setup:
|
# check-setup:
|
||||||
# run some tests to validate the development environment\
|
# run some tests to validate the development environment\
|
||||||
@ -485,16 +488,15 @@ _gitSwitchAutoCreate BRANCH:
|
|||||||
# @({{ SHELLTEST }} checks \
|
# @({{ SHELLTEST }} checks \
|
||||||
# && echo $@ PASSED) || echo $@ FAILED
|
# && echo $@ PASSED) || echo $@ FAILED
|
||||||
|
|
||||||
# show the sorted, unique files matched by SOURCEFILES
|
# sym-link some directories required by hledger-web dev builds
|
||||||
@listsourcefiles:
|
mkwebdirs:
|
||||||
for f in {{ SOURCEFILES }}; do echo $f; done | sort | uniq
|
echo "#ln -sf hledger-web/config # disabled, causes makeinfo warnings"
|
||||||
|
ln -sf hledger-web/messages
|
||||||
# show the sorted, unique subdirectories containing hs files
|
ln -sf hledger-web/static
|
||||||
@listsourcedirs:
|
ln -sf hledger-web/templates
|
||||||
find . -name '*hs' | sed -e 's%[^/]*hs$%%' | sort | uniq
|
|
||||||
|
|
||||||
# Show last week's activity, for TWIH
|
# Show last week's activity, for TWIH
|
||||||
@lastweek:
|
@_lastweek:
|
||||||
echo "hledger time last 7 days including today (this should be run on a Friday):"
|
echo "hledger time last 7 days including today (this should be run on a Friday):"
|
||||||
tt bal hledger -DTS -b '6 days ago' --drop 2
|
tt bal hledger -DTS -b '6 days ago' --drop 2
|
||||||
echo
|
echo
|
||||||
@ -514,6 +516,14 @@ _gitSwitchAutoCreate BRANCH:
|
|||||||
git -C finance log --format='%C(yellow)%cd %ad %Cred%h%Creset %s %Cgreen(%an)%Creset%C(bold blue)%d%Creset' --date=short --since="6 days ago" --reverse
|
git -C finance log --format='%C(yellow)%cd %ad %Cred%h%Creset %s %Cgreen(%an)%Creset%C(bold blue)%d%Creset' --date=short --since="6 days ago" --reverse
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
# show the sorted, unique files matched by SOURCEFILES
|
||||||
|
@_listsourcefiles:
|
||||||
|
for f in {{ SOURCEFILES }}; do echo $f; done | sort | uniq
|
||||||
|
|
||||||
|
# show the sorted, unique subdirectories containing hs files
|
||||||
|
@_listsourcedirs:
|
||||||
|
find . -name '*hs' | sed -e 's%[^/]*hs$%%' | sort | uniq
|
||||||
|
|
||||||
# Show a bunch of debug messages.
|
# Show a bunch of debug messages.
|
||||||
@_dbgmsgs:
|
@_dbgmsgs:
|
||||||
rg --sort path -t hs 'dbg.*?(".*")' -r '$1' -o
|
rg --sort path -t hs 'dbg.*?(".*")' -r '$1' -o
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user