]> granicus.if.org Git - libvpx/commitdiff
ads2armasm_ms: Match the indentation of the previous line
authorMartin Storsjo <martin@martin.st>
Thu, 20 Mar 2014 06:12:29 +0000 (08:12 +0200)
committerMartin Storsjo <martin@martin.st>
Thu, 20 Mar 2014 06:13:07 +0000 (08:13 +0200)
Instead of hardcoding a certain indentation, use the regexp to
provide similar indentation for the new line as well.

Change-Id: Iacb2621b35ce7e1aa3980c1603b8e3ab02d98a35

build/make/ads2armasm_ms.pl

index 61ffe88691e47d46cbf75f4aed99472f262fec04..2a2c470ff88a5d1b548a03916174dbb0936cfaf9 100755 (executable)
@@ -32,7 +32,7 @@ while (<STDIN>)
 
     s/ldrneb/ldrbne/i;
     s/ldrneh/ldrhne/i;
-    s/(ENDP.*)/$&\n    ALIGN 4/;
+    s/^(\s*)ENDP.*/$&\n$1ALIGN 4/;
 
     print;
 }