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
This commit is contained in:
Marcelo Matus 2003-12-11 00:14:57 +00:00
commit c2dff1e487

7
Tools/sleep Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
SLEEP=/bin/sleep
if [ -z $NOSLEEP ]; then
exec $SLEEP $*
fi