add color for build message(error:red, warning:ylw) 45/152245/2
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 25 Sep 2017 10:28:02 +0000 (19:28 +0900)
committerjunsu choi <jsuya.choi@samsung.com>
Wed, 27 Sep 2017 09:54:04 +0000 (09:54 +0000)
Change-Id: I96ee17c396cb743b880da74722a841324599df82

packaging/elementary.spec

index 1eef5eba21c6401ec0a3fb32dc7b5201a4313d67..7f620d4a1e50718cefa75789d03675486fb6c451 100644 (file)
@@ -131,7 +131,10 @@ cp %{SOURCE1001} .
          --enable-build-examples
 %endif
 
-%__make %{?_smp_mflags}
+%__make %{?_smp_mflags} \
+2>&1 | sed \
+-e 's%^.*: error: .*$%\x1b[37;41m&\x1b[m%' \
+-e 's%^.*: warning: .*$%\x1b[30;43m&\x1b[m%'
 
 %install
 %make_install