[Intel-gfx] [maintainer-tools PATCH] qf: Fix qf_help: Remove attempt to grab DIM_PREFIX.

Rodrigo Vivi rodrigo.vivi at intel.com
Wed Aug 23 17:36:22 UTC 2017


This is not available here nor will be available on
qfrc. So let's avoid duplication and just grab the qf.rst
file from whatever repository this command is called from.

Cc: Jani Nikula <jani.nikula at intel.com>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
 qf | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/qf b/qf
index 1f056f90ef70..0373a089ff67 100755
--- a/qf
+++ b/qf
@@ -171,13 +171,10 @@ function quilt_clean_check
 
 function qf_help
 {
-	manpage=$DIM_PREFIX/maintainer-tools/qf.rst
+	manpage=$(dirname $(readlink -f $0))/qf.rst
 	if [ ! -e "$manpage" ]; then
-		manpage=$(dirname $(readlink -f $0))/qf.rst
-		if [ ! -e "$manpage" ]; then
-			echo "Can't find the man page."
-			exit 1
-		fi
+		echo "Can't find the man page."
+		exit 1
 	fi
 
 	if hash rst2man 2>/dev/null; then
-- 
2.13.2



More information about the Intel-gfx mailing list