[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg --print-installation-architecture, minimal version



On Sat, Jan 09, 1999 at 02:57:18AM +0100, Wichert Akkerman wrote:
> 
> I'ld like to rewrite update-modules so it does not need anything from
> /usr to regenerate conf.modules. I looks like this is quite doable,
> except for the call to `dpkg --print-build-architecture`. Is there
> a sh-wizard out there who can produce something to determine the
> architecture of the running system for all architectures that Debian
> runs on?

`--print-build-architecture' isn't a valid option; if you mean
`dpkg --print-installation-architecture', then this line does just
that:

uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/

	(copied from linux/Makefile in the kernel sources).

-- 
Juan Cespedes


Reply to: