<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>LICENSE.txt</filename>
    </added>
    <added>
      <filename>README.md</filename>
    </added>
    <added>
      <filename>specialized/README.md</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,6 +2,7 @@
 # mkvdts2ac3.sh - add an AC3 track to an MKV from its DTS
 # Author: Jake Wharton &lt;jakewharton@gmail.com&gt;
 # Website: http://jakewharton.com
+#          http://github.com/JakeWharton/mkvdts2ac3/
 # Version: 1.0.4
 # License:
 #   Copyright 2009 Jake Wharton
@@ -21,12 +22,12 @@
 displayhelp() {
 	echo &quot;Usage: $0 [options] &lt;filename&gt;&quot;
 	echo &quot;Options:&quot;
+	echo &quot;     -c TITLE,        Custom AC3 track title.&quot;
+	echo &quot;     --custom TITLE&quot;
 	echo &quot;     -d, --default    Mark AC3 track as default.&quot;
 	echo &quot;     -e, --external   Leave AC3 track out of file. Does not modify the&quot;
 	echo &quot;                      original matroska file. This overrides '-n' and&quot;
 	echo &quot;                      '-d' arguments.&quot;
-	echo &quot;     -c TITLE,        Custom AC3 track title.&quot;
-	echo &quot;     --custom TITLE&quot;
 	echo &quot;     -k, --keep-dts   Keep external DTS track (implies '-n').&quot;
 	echo &quot;     -n, --no-dts     Do not retain the DTS track.&quot;
 	echo &quot;     -o MODE          Pass a custom audio output mode to libdca.&quot;
@@ -78,35 +79,17 @@ while [ -z &quot;$MKVFILE&quot; ]; do
 	
 	case &quot;$1&quot; in
 	
-		&quot;--debug&quot; )
-			# Echo commands and pause before executing
-			if [ $EXECUTE = 0 ]; then
-				echo &quot;ERROR: --debug flag not valid with --test.&quot;
-				displayhelp
-				exit
-			fi
-			
-			PRINT=1
-			PAUSE=1
-			EXECUTE=1
-		;;
-		
-		&quot;--test&quot; )
-			# Echo commands and do not execute
-			if [ $PAUSE = 1 ]; then
-				echo &quot;WARNING: --test overrides previous --debug flag.&quot;
+        &quot;-c&quot; | &quot;--custom&quot; )
+            # Use custom name for AC3 track
+            shift
+            DTSNAME=$1
+        ;;
+		&quot;-d&quot; | &quot;--default&quot; )
+			# Only allow this if we aren't making the file external
+			if [ -z $EXTERNAL ]; then
+				DEFAULT=1
 			fi
-			
-			PRINT=1
-			EXECUTE=0
-		;;
-		
-		&quot;-w&quot; | &quot;--wd&quot; )
-			# Specify working directory manually
-			shift
-			WD=$1
 		;;
-		
 		&quot;-e&quot; | &quot;--external&quot; )
 			EXTERNAL=1
 			# Don't allow -d or -n switches if they're already set
@@ -114,20 +97,6 @@ while [ -z &quot;$MKVFILE&quot; ]; do
 			KEEPDTS=0
 			DEFAULT=0
 		;;
-		
-		&quot;-n&quot; | &quot;--no-dts&quot; )
-			# Only allow this if we aren't making the file external
-			if [ -z $EXTERNAL ]; then
-				NODTS=1
-			fi
-		;;
-        
-        &quot;-c&quot; | &quot;--custom&quot; )
-            # Use custom name for AC3 track
-            shift
-            DTSNAME=$1
-        ;;
-		
 		&quot;-k&quot; | &quot;--keep-dts&quot; )
 			# Only allow external DTS track if muxing AC3 track
 			if [ -z $EXTERNAL ]; then
@@ -135,36 +104,63 @@ while [ -z &quot;$MKVFILE&quot; ]; do
 			fi
 			
 		;;
-		
+		&quot;-n&quot; | &quot;--no-dts&quot; )
+			# Only allow this if we aren't making the file external
+			if [ -z $EXTERNAL ]; then
+				NODTS=1
+			fi
+		;;
+		&quot;-o&quot; )
+			# Move required audio mode value &quot;up&quot;
+			shift
+			AUDIOMODE=$1
+		;;
 		&quot;-t&quot; | &quot;--track&quot; )
 			# Move required TRACKID argument &quot;up&quot;
 			shift
 			DTSTRACK=$1
 		;;
-		
-		&quot;-d&quot; | &quot;--default&quot; )
-			# Only allow this if we aren't making the file external
-			if [ -z $EXTERNAL ]; then
-				DEFAULT=1
+		&quot;-w&quot; | &quot;--wd&quot; )
+			# Specify working directory manually
+			shift
+			WD=$1
+		;;
+        
+        
+		&quot;--test&quot; )
+			# Echo commands and do not execute
+			if [ $PAUSE = 1 ]; then
+				echo &quot;WARNING: --test overrides previous --debug flag.&quot;
+			fi
+			
+			PRINT=1
+			EXECUTE=0
+		;;
+		&quot;--debug&quot; )
+			# Echo commands and pause before executing
+			if [ $EXECUTE = 0 ]; then
+				echo &quot;ERROR: --debug flag not valid with --test.&quot;
+				displayhelp
+				exit
 			fi
+			
+			PRINT=1
+			PAUSE=1
+			EXECUTE=1
 		;;
 		
-		&quot;-v&quot; | &quot;--version&quot; )
-			# Version information is always displayed so just exit here
-			exit
-		;;
+		
 		
 		&quot;-h&quot; | &quot;--help&quot; )
 			displayhelp
 			exit
 		;;
-		
-		&quot;-o&quot; )
-			# Move required audio mode value &quot;up&quot;
-			shift
-			AUDIOMODE=$1
+		&quot;-v&quot; | &quot;--version&quot; )
+			# Version information is always displayed so just exit here
+			exit
 		;;
 		
+		
 		-* | --* )
 			echo &quot;ERROR: Invalid argument '$1'.&quot;
 			echo &quot;&quot;
@@ -179,6 +175,7 @@ while [ -z &quot;$MKVFILE&quot; ]; do
 			# Ensure there are no arguments after the filename
 			if [ $# -ne 0 ]; then
 				echo &quot;ERROR: You cannot supply any arguments after the filename. Please check the command syntax below against what has been parsed.&quot;
+				echo &quot;&quot;
 				echo &quot;Control Flags:&quot;
 				echo &quot;  Strip DTS: $NODTS&quot;
 				echo &quot;  Keep DTS: $KEEPDTS&quot;
@@ -265,7 +262,7 @@ if [ $PRINT = 1 ]; then
 	echo &quot;DTS FILE: $DTSFILE&quot;
 	echo &quot;AC3 FILE: $AC3FILE&quot;
 	echo &quot;NEW FILE: $NEWFILE&quot;
-	echo &quot;WORKING DIR: $WD&quot;
+	echo &quot;WORKING DIRECTORY: $WD&quot;
 fi
 
 
@@ -274,7 +271,7 @@ fi
 if [ -z $DTSTRACK ]; then
 	if [ $PRINT = 1 ]; then
 		echo &quot;&quot;
-		echo &quot;Find first DTS track in MKV file&quot;
+		echo &quot;Find first DTS track in MKV file.&quot;
 		echo &quot;&gt; mkvmerge -i \&quot;$MKVFILE\&quot; | grep -m 1 \&quot;audio (A_DTS)\&quot; | cut -d &quot;:&quot; -f 1 | cut -d \&quot; \&quot; -f 3&quot;
 		DTSTRACK=&quot;DTSTRACK&quot;
 		dopause
@@ -292,7 +289,7 @@ else
 	# Checks to make sure the command line argument track id is valid
 	if [ $PRINT = 1 ]; then
 		echo &quot;&quot;
-		echo &quot;Checking to see if DTS track specified via arguments is valid&quot;
+		echo &quot;Checking to see if DTS track specified via arguments is valid.&quot;
 		echo &quot;&gt; mkvmerge -i \&quot;$MKVFILE\&quot; | grep \&quot;Track ID $DTSTRACK: audio (A_DTS)\&quot;&quot;
 		dopause
 	fi
@@ -303,7 +300,7 @@ else
 			echo &quot;ERROR: Track ID '$DTSTRACK' is not a DTS track and/or does not exist.&quot;
 			exit
 		else
-			echo &quot;INFO: Using alternate DTS track with ID '$DTSTRACK'&quot;
+			echo &quot;INFO: Using alternate DTS track with ID '$DTSTRACK'.&quot;
 		fi
 	fi
 fi</diff>
      <filename>mkvdts2ac3.sh</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>LICENSE</filename>
    </removed>
    <removed>
      <filename>README.markdown</filename>
    </removed>
    <removed>
      <filename>specialized/README.markdown</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>46428e0a3befa99c2f2afd9af5a2356a7d6c37fa</id>
    </parent>
  </parents>
  <author>
    <name>JakeWharton</name>
    <email>jake@champmove.com</email>
  </author>
  <url>http://github.com/JakeWharton/mkvdts2ac3/commit/0752b2f17e2fd43ff98df8541d0bac70a3d32b0c</url>
  <id>0752b2f17e2fd43ff98df8541d0bac70a3d32b0c</id>
  <committed-date>2009-11-05T06:24:28-08:00</committed-date>
  <authored-date>2009-11-05T06:24:28-08:00</authored-date>
  <message>Arguments are now sorted alphabetically.</message>
  <tree>883ab273f63f730c0eb9734dec91d62707ec4f3f</tree>
  <committer>
    <name>JakeWharton</name>
    <email>jake@champmove.com</email>
  </committer>
</commit>
