shithub: scc

Download patch

ref: bcb6fce2a0b149e4788b15564b946b08b7ba7700
parent: d1a409da8d398c026ed049f4fb0b0167fd648b93
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Dec 19 08:32:22 EST 2017

[as] Strim input data

Avoid phamton output due to spaces before of after the data

--- a/as/test.sh
+++ b/as/test.sh
@@ -12,7 +12,10 @@
 ./as-$cpu target/$cpu/test.s
 
 sed -n '/^\// ! {
-	s%.*/ %%
+	s%.*/%%
+	s%^[ 	]*%%
+	s%[ 	]*$%%
+	/^$/d
 	s%[ 	][ 	]*%\
 %g
 	p
@@ -23,7 +26,10 @@
 ../objdump/objdump |
 sed -n '/^data:/,$ {
 	/^data:/ ! {
-		s%.*: %%
+		s%.*:%%
+		s%^[ 	]*%%
+		s%[ 	]*$%%
+		/^$/d
 		s%[ 	][ 	]*%\
 %g
 		p