Pretty Make

From UFRaw

Jump to: navigation, search

pretty_make.py is a small python script that beatify the output of the make command. The original script can be found here. I use it by defining

alias pmake=pretty_make.py

This version of the script defines beauty in a minimalist fasion, less output is more beautiful. A typical compilation command that make shows like:

if gcc -DHAVE_CONFIG_H -I. -I. -I.  -ffast-math -fomit-frame-pointer -W -Wall -O3
-I/home/udif/local/include   -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-DDCRAW_NOMAIN -DUFRAW_LOCALEDIR=\"/usr/share/locale\" -g -O2 -MT ufraw.o -MD -MP -MF
".deps/ufraw.Tpo" -c -o ufraw.o ufraw.c; \
then mv -f ".deps/ufraw.Tpo" ".deps/ufraw.Po"; else rm -f ".deps/ufraw.Tpo"; exit 1; fi

Will instead appear like:

gcc ufraw.o ufraw.c;

The script is not perfect and might require some fitting to work nicely in other environments. It is simple enough to be easily modified.

Personal tools