From c2dff1e487673a34650ca8b8894904283d53aa48 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 11 Dec 2003 00:14:57 +0000 Subject: [PATCH] Added 'sleep 3' workaround. When used, it reduces the time for compile the test-suite from 23 minutes to 2 minutes. It also reduces plain swig compilation This is how it is used: 1.- copy or link the Tools/sleep program into a directory in your path, like ${HOME}/bin. 2.- check the right path for the real sleep program, now it says SLEEP=/bin/sleep but in your system could be different 3.- compile like this NOSLEEP=1 make NOSLEEP=1 make check-python-test-suite or export NOSLEEP=1 make make check-python-test-suite just rembember to unset NOSLEEP if you are not using it anymore. I don't see any problem in the compilation if sleep is deactivated. But if in your system/platform the compilation fails, just don't set NOSLEEP, and the compilation will go back to sleep as usual again. This is just a work around until the the 'sleep 3' problem is further analized. Marcelo git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5531 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Tools/sleep | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 Tools/sleep diff --git a/Tools/sleep b/Tools/sleep new file mode 100755 index 000000000..45c0e3737 --- /dev/null +++ b/Tools/sleep @@ -0,0 +1,7 @@ +#!/bin/sh + +SLEEP=/bin/sleep + +if [ -z $NOSLEEP ]; then + exec $SLEEP $* +fi \ No newline at end of file