moss-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Moss-devel] CVS: moss menu.sh,NONE,1.1


From: Alexander Feder <address@hidden>
Subject: [Moss-devel] CVS: moss menu.sh,NONE,1.1
Date: Mon, 24 Jun 2002 09:00:10 -0400

Update of /cvsroot/moss/moss
In directory subversions:/tmp/cvs-serv1986

Added Files:
        menu.sh 
Log Message:
small but maybe useful compile-menu using dialog.


--- NEW FILE ---
#!/bin/bash


#dialog --title "{ 3Dsia }" --checklist " Choose Packages to be compiled and 
installed" 12 50 5 1 "3Dsia" on 2 "RMC" on 3 "ODB" on 4 "Family" on 5 "OglClib" 
off 2> /tmp/temp.tmp
#ausgabe=$(cat /tmp/temp.tmp)

dialog --title "{ 3Dsia }" --checklist \
        "Choose Packages to be compiled" 12 50 5 \
        1 "3Dsia" off \
        2 "RMC" on \
        3 "ODB" on \
        4 "Family" on \
        5 "OglClib" off 2> ~/threedsia.tmp.$$

options=$(cat ~/threedsia.tmp.$$)
rm ~/threedsia.tmp.$$
 
clear

echo Compilation of following components:

for i in $options; do
   case "$i" in
       \"1\" ) threedsia=1; echo "  * 3Dsia";;
       \"2\" ) rmc=1;       echo "  * RMC";;
       \"3\" ) odb=1;       echo "  * ODB";;
       \"4\" ) family=1;    echo "  * Family";;
       \"5\" ) oglclib=1;   echo "  * OglClib";;
    esac
done

mossdir=$(pwd)

mkdir $mossdir/lib
mkdir $mossdir/include

if [ "$family" = "1" ]; then
    echo "Processing Family"
    cd $mossdir/family
    ./autogen.sh
    ./configure --prefix=$mossdir
    make
    make install
fi

if [ "$rmc" = "1" ]; then
    echo "Processing RMC"
    cd $mossdir/rmc
    ./autogen.sh
    ./configure --enable-debug --prefix=$mossdir
    make
    make install
fi

if [ "$odb" = "1" ]; then
    echo "Processing ODB"
    cd $mossdir/odb
    ./autogen.sh
    ./configure --prefix=$mossdir
    make
    make install
fi

if [ "$oglclib" = "1" ]; then
    echo "Processing OglClib"
    cd $mossdir/oglclib
    ./autogen.sh
    ./configure --prefix=$mossdir
    make
    make install
fi

if [ "$threedsia" = "1" ]; then
    echo "Processing 3Dsia"
    cd $mossdir/colpatik
    ./autogen.sh
    ./configure --prefix=$mossdir
    make
    make install
fi











reply via email to

[Prev in Thread] Current Thread [Next in Thread]