Merged r7769:7873 from michaelld/bc_behavior into trunk.
[debian/gnuradio] / README.components
index ba8cf84789661a1e3904567daf3b5f3f645e2869..c9ce1d29972110d16e3f777942bf18bfac196210 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
  
-# $Id:$
+# $Id$
 
 # Copyright 2008 Free Software Foundation.
 #
@@ -18,7 +18,7 @@
 
 set -x
 
-PREFIX=/usr/gnuradio
+PREFIX=/opt/gnuradio
 
 echo -n "README.components START "; date
 
@@ -27,7 +27,9 @@ echo -n "README.components START "; date
 # Avoid using rm -rf with $PREFIX, which could be /.  Make a backup of
 # the old prefix.
 sudo rm -rf $PREFIX.old
-sudo mv $PREFIX $PREFIX.old
+if [ -d $PREFIX ]; then
+    sudo mv $PREFIX $PREFIX.old
+fi
 rm -rf BUILD.*
 
 # Bootstrap just once, rather than once per module.
@@ -68,36 +70,37 @@ CONF_DOC_ARGS="
 CONF_DISABLE_ALL="--disable-all-components"
 
 # We use % instead of ' ' to be able to iterate with /bin/sh's for.
+# This variable should list all possible arguments, in tsorted order.
 CONF_ENABLE_ARGS="
 --enable-omnithread
+--with-omnithread%--enable-gnuradio-core
 --with-omnithread%--enable-pmt
 --with-omnithread%--with-pmt%--enable-mblock
---with-omnithread%--enable-gnuradio-core
---with-omnithread%--enable-usrp
+--with-omnithread%--with-pmt%--with-mblock%--enable-usrp
 --with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--with-usrp%--enable-gr-usrp
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-audio-alsa
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-audio-jack
 --with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-audio-oss
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-audio-osx
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-audio-portaudio
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-audio-windows
 --with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-atsc
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-comedi
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-cvsd-vocoder
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--with-usrp%--enable-gr-gpio
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-gsm-fr-vocoder
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-pager
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-radar-mono
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-radio-astronomy
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-trellis
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-video-sdl
 --with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-wxgui
---with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gr-utils
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--with-usrp%--enable-gr-sounder
+--with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--with-usrp%--with-gr-usrp%--with-gr-wxgui%--enable-gr-utils
 --with-omnithread%--with-gnuradio-core%--with-pmt%--with-mblock%--enable-gnuradio-examples
 "
 
-# These are not used, but a list of what the script does not build.
-CONF_DISABLE_ARGS="
---enable-gr-comedi
---enable-gr-cvsd-vocoder
---enable-gr-gpio
---enable-gr-gsm-fr-vocoder
---enable-gr-pager
---enable-gr-radar-mono
---enable-gr-radio-astronomy
---enable-gr-trellis
---enable-gr-video-sdl
---enable-gr-sounder
-"
-
-# start at 1 to reserve 0 for "./README.components > BUILD.000 2>&1 &" 
-seq=1
+seq=0
 for arg in $CONF_ENABLE_ARGS; do
 
     # Convert sequence numbers and arguments to usable values.
@@ -110,6 +113,9 @@ for arg in $CONF_ENABLE_ARGS; do
     # configure with just one module
     ./configure --prefix=$PREFIX $CONF_DISABLE_ALL $argspace &&
 
+    # remove all prior objects
+    make clean &&
+
     # build
     make $jflag &&