[maintainer-tools PATCH v2 30/33] dim: abstract dim_checker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>
---
 dim | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/dim b/dim
index 4ff903fb3818..4370aec28ec0 100755
--- a/dim
+++ b/dim
@@ -662,6 +662,13 @@ function dim_checkpatch
 	done
 }
 
+function dim_checker
+{
+	rm drivers/gpu/drm/i915/*.o &> /dev/null || true
+	rm drivers/gpu/drm/i915/*.ko &> /dev/null || true
+	make C=1 drivers/gpu/drm/i915/i915.ko
+}
+
 function prep_pull_mail_greetings
 {
 	if [ -r $DIM_TEMPLATE_HELLO ]; then
@@ -1083,11 +1090,6 @@ fi
 # XXX: abscract each case to a dim_ prefixed function, and turn the help|*) case
 # into an else branch in the above check for functions.
 case "$subcmd" in
-	checker)
-		rm drivers/gpu/drm/i915/*.o &> /dev/null || true
-		rm drivers/gpu/drm/i915/*.ko &> /dev/null || true
-		make C=1 drivers/gpu/drm/i915/i915.ko
-		;;
 	help|*)
 		manpage=$DIM_PREFIX/maintainer-tools/dim.rst
 		if [ ! -e "$manpage" ]; then
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux