diff mbox

[maintainer-tools,v2,22/33] dim: abstract dim_cat_to_fixup

Message ID 52fa3c9e97f3335b0e523b47ec82d2e10ea4b20f.1453985388.git.jani.nikula@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jani Nikula Jan. 28, 2016, 1:27 p.m. UTC
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 dim | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/dim b/dim
index f86ba6253e49..808c9c74a8d4 100755
--- a/dim
+++ b/dim
@@ -870,6 +870,12 @@  function dim_alias
 		sed 's/^dim_alias_/\t/;s/=/\t/'
 }
 
+function dim_cat_to_fixup
+{
+	cd $DIM_PREFIX/drm-intel-nightly
+	cat > `cat .fixup_file_path`
+}
+
 # dim subcommand aliases
 declare -n subcmd=dim_alias_${subcommand//-/_}
 if [ -z "$subcmd" ]; then
@@ -886,10 +892,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
-	cat-to-fixup)
-		cd $DIM_PREFIX/drm-intel-nightly
-		cat > `cat .fixup_file_path`
-		;;
 	tc)
 		cd $DIM_PREFIX/$DIM_DRM_INTEL
 		tag=$(git tag --contains $1 | grep ^v | sort -V | head -n 1)