linux - sed usage in x loader Makefile -


what sed command do? when run uname -m on pc, returns x86_64.

hostarch := $(shell uname -m | \ sed -e s/i.86/i386/ \     -e s/sun4u/sparc64/ \     -e s/arm.*/arm/ \     -e s/sa110/arm/ \     -e s/powerpc/ppc/ \     -e s/macppc/ppc/) 

note: code snippet x loader makefile.

the sed tries show system run more readable name.

eks if have i.86 shows i386

but 1 made script did forget intel 64 bits x86_64.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -