From eb49f6926581f9f9d7e6d9853ad41533fd779c07 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 30 Oct 2013 15:38:01 +0100 Subject: use a little helper to determine architecture Architecture reported by `uname -a` and used by pacman are not neccessarily the same, so use a little helper. --- arch.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 arch.c (limited to 'arch.c') diff --git a/arch.c b/arch.c new file mode 100644 index 0000000..9a5f690 --- /dev/null +++ b/arch.c @@ -0,0 +1,21 @@ +/* + * (C) 2013 by Christian Hesse + * + * This software may be used and distributed according to the terms + * of the GNU General Public License, incorporated herein by reference. + */ + +#include +#include + +#include "config.h" + +/*** main ***/ +int main(int argc, char ** argv) { + /* just print the architecture */ + puts(ARCH); + + return EXIT_SUCCESS; +} + +// vim: set syntax=c: -- cgit v1.2.3-54-g00ecf