From 67f81b6b94100d1bf899e19fddb8e89e103d6220 Mon Sep 17 00:00:00 2001 From: Dima Pasechnik Date: Thu, 7 Nov 2024 05:06:24 +0000 Subject: [PATCH 1/2] keep meson.build file for ext/interpreters --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 53d2c689843..fcba88cff79 100644 --- a/Makefile +++ b/Makefile @@ -122,7 +122,7 @@ sagelib-clean: rm -rf c_lib .cython_version cython_debug; \ rm -rf build; find . -name '*.pyc' -o -name "*.so" | xargs rm -f; \ rm -f $$(find . -name "*.pyx" | sed 's/\(.*\)[.]pyx$$/\1.c \1.cpp/'); \ - rm -rf sage/ext/interpreters) \ + cd sage/ext/interpreters/; rm -f *.so *.c *.h *.py* *.pxd) \ && (cd "$(SAGE_ROOT)/build/pkgs/sagelib/src/" && rm -rf build); \ fi From b003c50c586232628137b6f86cca6c2721ae8ae7 Mon Sep 17 00:00:00 2001 From: Dima Pasechnik Date: Thu, 7 Nov 2024 07:35:53 -0600 Subject: [PATCH 2/2] safer "rm" (preceded by cd [..] &&), README about src/sage/ext/interpreters/ --- .gitignore | 1 + Makefile | 2 +- src/sage/ext/interpreters/README | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 src/sage/ext/interpreters/README diff --git a/.gitignore b/.gitignore index 7d8c2f0adc4..0d216c36b8f 100644 --- a/.gitignore +++ b/.gitignore @@ -147,6 +147,7 @@ __pycache__/ # Generated by sage_setup.autogen /src/sage/ext/interpreters !/src/sage/ext/interpreters/meson.build +!/src/sage/ext/interpreters/README # Generated Cython files *.so diff --git a/Makefile b/Makefile index fcba88cff79..96d1ba62e94 100644 --- a/Makefile +++ b/Makefile @@ -122,7 +122,7 @@ sagelib-clean: rm -rf c_lib .cython_version cython_debug; \ rm -rf build; find . -name '*.pyc' -o -name "*.so" | xargs rm -f; \ rm -f $$(find . -name "*.pyx" | sed 's/\(.*\)[.]pyx$$/\1.c \1.cpp/'); \ - cd sage/ext/interpreters/; rm -f *.so *.c *.h *.py* *.pxd) \ + cd sage/ext/interpreters/ && rm -f *.so *.c *.h *.py* *.pxd) \ && (cd "$(SAGE_ROOT)/build/pkgs/sagelib/src/" && rm -rf build); \ fi diff --git a/src/sage/ext/interpreters/README b/src/sage/ext/interpreters/README new file mode 100644 index 00000000000..1e42d921e68 --- /dev/null +++ b/src/sage/ext/interpreters/README @@ -0,0 +1 @@ +The files in this directory, except meson.build, are autogenerated by sage_setup.autogen