From 25ab3159c97cb22d0e6234bc02911bac4688e6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 9 May 2021 17:03:40 +0300 Subject: [PATCH] support top-level commands --- IV/Makefile | 2 +- IV/in-container | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IV/Makefile b/IV/Makefile index eb93057..e17f999 100644 --- a/IV/Makefile +++ b/IV/Makefile @@ -83,7 +83,7 @@ mj-msc.pdf: mj-msc.tex version.inc.tex vars.inc.tex bib.bib \ define FIG_template $(1).pdf: layer2img.py Makefile $(2) - python ./layer2img.py --outfile=$(1).pdf \ + python3 ./layer2img.py --outfile=$(1).pdf \ $$(if $$($(1)_WIDTHDIV),--widthdiv=$$($(1)_WIDTHDIV)) \ $$(if $$($(1)_QUADRANT),--quadrant=$$($(1)_QUADRANT)) \ $$(foreach i,1 2 3, \ diff --git a/IV/in-container b/IV/in-container index edeb8e8..368cca7 100755 --- a/IV/in-container +++ b/IV/in-container @@ -10,6 +10,6 @@ fi exec docker run -ti --rm \ --net=host \ -v /var/run/docker.sock:/var/run/docker.sock \ - -v ${PWD}:/x \ - -w /x \ + -v $(git rev-parse --show-toplevel):/x \ + -w /x/$(basename ${PWD}) \ "$NAME" "$@"