summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2009-05-23 12:08:56 +0200
committerNicolai Haehnle <nhaehnle@gmail.com>2009-05-23 12:08:56 +0200
commit256ad9ddf7b19c03d75c959f1438e65c40d33468 (patch)
tree854e3db628ea2830f3954341f3c5682e1e7ff9f5
Initial commit
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
-rw-r--r--dxo-init32
-rwxr-xr-xdxo-start-distccd5
2 files changed, 37 insertions, 0 deletions
diff --git a/dxo-init b/dxo-init
new file mode 100644
index 0000000..3355b5d
--- /dev/null
+++ b/dxo-init
@@ -0,0 +1,32 @@
+# Add the following to your .bashrc:
+#
+# dxo-init ()
+# {
+# DXO_PATH=~/dev/xorg
+# . ${DXO_PATH}/dxo/dxo-init
+# }
+#
+# Then simply executing dxo-init will setup the X.Org development
+# environment.
+
+DXO_PREFIX=${DXO_PATH}/prefix
+DXO_SCRIPTS=${DXO_PATH}/dxo
+DXO_DISTCC_NETWORK=192.168.1.0/24
+
+ACLOCAL="aclocal -I ${DXO_PREFIX}/share/aclocal/"
+PKG_CONFIG_PATH=${DXO_PREFIX}/lib/pkgconfig
+PATH=${DXO_SCRIPTS}:${PATH}
+
+CC="ccache distcc gcc"
+CXX="ccache distcc g++"
+
+export CC
+export CXX
+
+export DXO_DISTCC_NETWORK
+export DXO_SCRIPTS
+export DXO_PATH
+export DXO_PREFIX
+
+echo "Setup X.Org development environment."
+echo "You might want to run dxo-start-distccd."
diff --git a/dxo-start-distccd b/dxo-start-distccd
new file mode 100755
index 0000000..cb5fe9b
--- /dev/null
+++ b/dxo-start-distccd
@@ -0,0 +1,5 @@
+#!/bin/bash
+#
+# Start the distcc daemon on this machine
+
+distccd --daemon --allow=${DXO_DISTCC_NETWORK}