@@ -15,87 +15,91 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Megatest. If not, see . -# Configure the build - -if [[ "$1"x == "x" ]];then - PREFIX=$PWD -else - PREFIX=$1 -fi - - -#====================================================================== -# Configure stuff needed for eggs -#====================================================================== - -function configure_dependencies () { - - #====================================================================== - # libnanomsg - #====================================================================== - - if [[ ! $(ls /usr/lib/*/libnanomsg*) ]];then - echo "libnanomsg build needed." - echo "BUILD_NANOMSG=yes" >> makefile.inc - fi - - #====================================================================== - # postgresql libraries - #====================================================================== - - if [[ ! $(ls /usr/lib/*/libpq.*) ]];then - echo "Postgresql build needed." - echo "BUILD_POSTGRES=yes" >> makefile.inc - fi - - if [[ ! $(ls /usr/lib/*/libsqlite3.*) ]];then - echo "Sqlite3 build needed." - echo "BUILD_SQLITE3=yes" >> makefile.inc - fi - -} - -#====================================================================== -# Initialize makefile.inc -#====================================================================== - -echo "" > makefile.inc - -#====================================================================== -# Do we need Chicken? -#====================================================================== - -if [[ -e /usr/bin/sw_vers ]]; then - ARCHSTR=$(/usr/bin/sw_vers -productVersion) -else - ARCHSTR=$(lsb_release -sr) -fi - -echo "CHICKEN_PREFIX=$PREFIX/.$ARCHSTR" >> makefile.inc -CHICKEN_PREFIX=$PREFIX/bin/.$ARCHSTR - -if [[ ! $(type csi) ]];then - echo "Chicken build needed." - echo "BUILD_CHICKEN=yes" >> makefile.inc - configure_dependencies - echo "include chicken.makefile" >> makefile.inc -else - echo "CSIPATH=$(which csi)" >> makefile.inc - CSIPATH=$(which csi) - echo "CKPATH=$(dirname $(dirname $CSIPATH))" >> makefile.inc -fi - -# Make setup scripts -echo "#!/bin/bash" > setup.sh -echo "export PATH=$CHICKEN_PREFIX/bin:\$PATH" >> setup.sh -echo "export LD_LIBRARY_PATH=$CHICKEN_PREFIX/lib" >> setup.sh -echo 'exec "$@"' >> setup.sh -chmod a+x setup.sh - -echo "setenv PATH $CHICKEN_PREFIX/bin:\$PATH" > setup.csh -echo "setenv LD_LIBRARY_PATH $CHICKEN_PREFIX/lib" >> setup.csh - -echo "All done creating makefile.inc, feel free to edit it!" -echo "run \"setup.sh bash\" or source setup.csh to get PATH and LD_LIBRARY_PATH adjusted" + + + +# # Configure the build +# +# if [[ "$1"x == "x" ]];then +# PREFIX=$PWD +# else +# PREFIX=$1 +# fi +# +# +# #====================================================================== +# # Configure stuff needed for eggs +# #====================================================================== +# +# function configure_dependencies () { +# +# #====================================================================== +# # libnanomsg +# #====================================================================== +# +# if [[ ! $(ls /usr/lib/*/libnanomsg*) ]];then +# echo "libnanomsg build needed." +# echo "BUILD_NANOMSG=yes" >> makefile.inc +# fi +# +# #====================================================================== +# # postgresql libraries +# #====================================================================== +# +# if [[ ! $(ls /usr/lib/*/libpq.*) ]];then +# echo "Postgresql build needed." +# echo "BUILD_POSTGRES=yes" >> makefile.inc +# fi +# +# if [[ ! $(ls /usr/lib/*/libsqlite3.*) ]];then +# echo "Sqlite3 build needed." +# echo "BUILD_SQLITE3=yes" >> makefile.inc +# fi +# +# } +# +# #====================================================================== +# # Initialize makefile.inc +# #====================================================================== +# +# echo "" > makefile.inc +# +# #====================================================================== +# # Do we need Chicken? +# #====================================================================== +# +# if [[ -e /usr/bin/sw_vers ]]; then +# ARCHSTR=$(/usr/bin/sw_vers -productVersion) +# else +# ARCHSTR=$(lsb_release -sr) +# fi +# +# echo "CHICKEN_PREFIX=$PREFIX/.$ARCHSTR" >> makefile.inc +# CHICKEN_PREFIX=$PREFIX/bin/.$ARCHSTR +# +# if [[ ! $(type csi) ]];then +# echo "Chicken build needed." +# echo "BUILD_CHICKEN=yes" >> makefile.inc +# configure_dependencies +# echo "include chicken.makefile" >> makefile.inc +# else +# echo "CSIPATH=$(which csi)" >> makefile.inc +# CSIPATH=$(which csi) +# echo "CKPATH=$(dirname $(dirname $CSIPATH))" >> makefile.inc +# fi +# +# # Make setup scripts +# echo "#!/bin/bash" > setup.sh +# echo "export PATH=$CHICKEN_PREFIX/bin:\$PATH" >> setup.sh +# echo "export LD_LIBRARY_PATH=$CHICKEN_PREFIX/lib" >> setup.sh +# echo 'exec "$@"' >> setup.sh +# chmod a+x setup.sh +# +# echo "setenv PATH $CHICKEN_PREFIX/bin:\$PATH" > setup.csh +# echo "setenv LD_LIBRARY_PATH $CHICKEN_PREFIX/lib" >> setup.csh +# +# echo "All done creating makefile.inc, feel free to edit it!" +# echo "run \"setup.sh bash\" or source setup.csh to get PATH and LD_LIBRARY_PATH adjusted" +#