Remove generated output/ directory when 'make clean' is called

This commit is contained in:
linker99 2023-10-27 21:18:03 +08:00
parent a2c6e8e0de
commit 60ae298d2a
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From dac176fdef4d5f9c16a5ec8ecadb605cd78e6335 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Blondon?= <stephane.blondon@gmail.com>
Date: Fri, 29 Nov 2019 16:15:47 +0100
Subject: [PATCH] Remove generated output/ directory when 'make clean' is
called
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 61ee393e..13813adc 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ check:
-i docs/build -i pygments/formatters/_mapping.py -i pygments/unistring.py
clean: clean-pyc
- -rm -rf build
+ -rm -rf build tests/examplefiles/output
-rm -f codetags.html
clean-pyc:
--
2.27.0

View File

@ -16,7 +16,7 @@ need to prettify source code. Highlights are: \
Name: python-pygments
Summary: Syntax highlighting engine written in Python
Version: 2.5.2
Release: 4
Release: 5
License: BSD
URL: http://pygments.org/
Source0: https://pypi.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
@ -25,6 +25,7 @@ BuildArch: noarch
Patch6000: backport-CVE-2021-20270.patch
Patch6001: backport-CVE-2021-27291.patch
Patch6002: backport-weed-out-more-backtracking-string-regexes.patch
Patch6003: backport-Remove-generated-output-directory-when-make-clean-is.patch
%description
%{_description}
@ -85,6 +86,9 @@ cp -r doc/docs doc/reST
%lang(en) %{_mandir}/man1/pygmentize.1*
%changelog
* Thu Nov 3 2021 huangduirong<huangduirong@huawei.com> - 2.5.2-5
- Remove generated output/ directory when 'make clean' is called
* Sun Sep 26 2021 huangduirong<huangduirong@huawei.com> - 2.5.2-4
- Infinite loop in get_tokens_unprocessed