From 3f95738a27a594cce8b0e73e6298c9381c618ea4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= <ark@switnet.org>
Date: Mon, 2 Dec 2019 08:48:03 +0000
Subject: [PATCH] Avoid hardcoding names on helper

---
 helpers/make-nautilus | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/helpers/make-nautilus b/helpers/make-nautilus
index 65b54b3e..a02e253f 100644
--- a/helpers/make-nautilus
+++ b/helpers/make-nautilus
@@ -25,8 +25,19 @@ for patch in 16_unity_new_documents.patch; do
   sed "/$patch/d" -i debian/patches/series
 done
 
-sed -i '/^AUTHORS/d' debian/docs
-sed -i '/^THANKS/d' debian/docs
+check_file() {
+if [ ! -f $1 ]; then
+    echo " $1 doesn't exist removing from debian/docs"
+    sed -i "/^$1/d" debian/docs
+fi
+}
+
+echo "Checking for necessary files to install by debian/docs."
+while read i
+do
+    check_file $i
+done < debian/docs
+
 
 changelog "Revert from using ubuntu-help to default gnome-help"
 compile
-- 
GitLab