From 5e4fe461f63542a8a2f209c1b7a7320b0ba2a681 Mon Sep 17 00:00:00 2001 From: xyhhx Date: Tue, 2 Apr 2024 01:38:39 -0400 Subject: [PATCH] docs(contributing): add syntax highlighting to codeblocks --- CONTRIBUTING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6f72446..30d02a0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -72,7 +72,7 @@ $ make sxctl Find if there is a relevant package that you can use as a boilerplate for the new addition. -``` +```sh cp -R packages/python packages/cython vim packages/cython/Containerfile # fix SRC_FILE, SRC_HASH, SRC_URL etc manually @@ -91,17 +91,17 @@ the package you are contributing in `packages.mk` <--author: Lance R. Vick --> - see contents of a package: -``` +```sh package=somepackage tar -tvf $(find out/${package} -type f -printf '%s %p\n' | sort -nr | head -n1 | awk '{ print $2 }') | less ``` - test package for reproducibility: -``` +```sh package=somepackage; rm -rf out{,2}/${package}; make NOCACHE=1 ${package}; mv out/${package} out2/; make NOCACHE=1 ${package}; diffoscope $(find out*/${package} -type f -printf '%s %p\n' | sort -nr | head -n2 | awk '{ print $2 }' | tr '\n' ' ') ``` - make svg graph of dependency tree for a single package -``` +```sh package=somepackage; make -Bnd ${package} | make2graph | dot -Tsvg -o ${package}-graph.svg ``` <--author: Lance R. Vick -->