Skip to content

Commit

Permalink
make dev_deps_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Jul 17, 2024
1 parent 464b6d6 commit a9b2dfc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -530,5 +530,21 @@ endif
all_bump_version:
$(foreach package,FUSE $(FUSE_PACKAGES_MAKEFILE), $(MAKE) bump_version repo=$(package);)

# print dependency tree of the packages in dev folder
dev_deps_tree:
julia -e' ;\
using AbstractTrees ;\
using Pkg ;\
function AbstractTrees.printnode(io::IO, uuid::Base.UUID) ;\
dep = get(Pkg.dependencies(), uuid, nothing) ;\
print(io, dep.name) ;\
end ;\
function AbstractTrees.children(uuid::Base.UUID) ;\
dep = get(Pkg.dependencies(), uuid, nothing) ;\
dev_deps = Dict([(key,value) for (key,value) in get(Pkg.dependencies(), uuid, nothing).dependencies if value !== nothing && isdir("../$$(get(Pkg.dependencies(), value, nothing).name)")]) ;\
tmp= sort!(collect(values(dev_deps)), by=x->get(Pkg.dependencies(), x, (name="",)).name) ;\
end ;\
AbstractTrees.print_tree(Pkg.project().dependencies["FUSE"]) ;\
'

.PHONY:

0 comments on commit a9b2dfc

Please sign in to comment.