summaryrefslogtreecommitdiffstats
path: root/arch.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-30 15:38:01 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-10-30 15:38:01 +0100
commiteb49f6926581f9f9d7e6d9853ad41533fd779c07 (patch)
tree9a1ce45b04477a2c19e366c3cea9b14ff6129da4 /arch.c
parentf38d0c991bcae3a894f3fc0b562f954e8e4ca2b6 (diff)
downloadpacredir-eb49f6926581f9f9d7e6d9853ad41533fd779c07.tar.gz
pacredir-eb49f6926581f9f9d7e6d9853ad41533fd779c07.tar.zst
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.
Diffstat (limited to 'arch.c')
-rw-r--r--arch.c21
1 files changed, 21 insertions, 0 deletions
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 <mail@eworm.de>
+ *
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "config.h"
+
+/*** main ***/
+int main(int argc, char ** argv) {
+ /* just print the architecture */
+ puts(ARCH);
+
+ return EXIT_SUCCESS;
+}
+
+// vim: set syntax=c: