Control: tags -1 + patch

Please find attached a patch to implement this.

- Fabian

From 703c0e5f2a61e00805929dc64b13d9778ca1c031 Mon Sep 17 00:00:00 2001
From: Fabian Greffrath <fabian+deb...@greffrath.com>
Date: Mon, 20 Oct 2014 17:03:37 +0200
Subject: [PATCH] wrap-and-sort: Add dirs, docs, examples, info, links,
 maintscript and
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

manpages (all can also be prefixed by the binary package name) to the
files in the debian/ directory that get sorted alphabetically.

Thanks to David Prévot for completing this list (Closes: #765338).
---
 scripts/wrap-and-sort | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/scripts/wrap-and-sort b/scripts/wrap-and-sort
index 48b6ce0..069f04d 100755
--- a/scripts/wrap-and-sort
+++ b/scripts/wrap-and-sort
@@ -44,8 +44,22 @@ SUPPORTED_FILES = (
     "control*.in",
     "copyright",
     "copyright.in",
+    "dirs",
+    "*.dirs",
+    "docs",
+    "*.docs",
+    "examples",
+    "*.examples",
+    "info",
+    "*.info",
     "install",
     "*.install",
+    "links",
+    "*.links",
+    "mainscript",
+    "*.maintscript",
+    "manpages",
+    "*.manpages",
 )
 
 
@@ -167,7 +181,7 @@ def wrap_and_sort(options):
             print(copyright_file)
         remove_trailing_whitespaces(copyright_file)
 
-    install_files = [f for f in options.files if re.search("install$", f)]
+    install_files = [f for f in options.files if re.search("(dirs|docs|examples|info|install|links|maintscript|manpages)$", f)]
     for install_file in sorted(install_files):
         if options.verbose:
             print(install_file)
-- 
2.1.1

Reply via email to