]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool: Ignore .orig and .rej files under modules/.
authorBruno Haible <bruno@clisp.org>
Thu, 18 May 2023 14:03:00 +0000 (16:03 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 20 May 2023 08:57:42 +0000 (10:57 +0200)
* gnulib-tool (func_sanitize_modulelist): Exclude also files whose name
ends in .orig or .rej.
* pygnulib/GLModuleSystem.py (GLModuleSystem.file_is_module): Likewise.

ChangeLog
gnulib-tool
pygnulib/GLModuleSystem.py

index 36f39c6e62827e0dc5a2e2d122883c6bef57ac71..5c931043f6f20dd61a47e23b92103c6e3c08926d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-05-18  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool: Ignore .orig and .rej files under modules/.
+       * gnulib-tool (func_sanitize_modulelist): Exclude also files whose name
+       ends in .orig or .rej.
+       * pygnulib/GLModuleSystem.py (GLModuleSystem.file_is_module): Likewise.
+
 2023-05-18  Bruno Haible  <bruno@clisp.org>
 
        uchar: Fix error when <uchar.h> is included twice.
index 74c395d9a435ad5053c6eb00666894c74e87ed29..91461042cd19698af9a77c24fec9e7a8d857e24d 100755 (executable)
@@ -1815,6 +1815,8 @@ func_sanitize_modulelist ()
       -e '/^TEMPLATE-EXTENDED$/d' \
       -e '/^TEMPLATE-TESTS$/d' \
       -e '/^\..*/d' \
+      -e '/\.orig$/d' \
+      -e '/\.rej$/d' \
       -e '/~$/d'
 }
 
index cc9bb27642f7a4d5113cb58ec06e1420b5d21068..87c6dc60488ae6b4e4655db369347b5627d2ef29 100644 (file)
@@ -124,6 +124,8 @@ class GLModuleSystem(object):
                     or filename == 'TEMPLATE-EXTENDED'
                     or filename == 'TEMPLATE-TESTS'
                     or filename.startswith('.')
+                    or filename.endswith('.orig')
+                    or filename.endswith('.rej')
                     or filename.endswith('~'))
 
     def list(self):