clean-build-all-release.sh 900 Bytes
Newer Older
Vincent Wei's avatar
Vincent Wei committed
1 2
#!/bin/bash

3 4 5 6 7
if [ ! -f myconfig.sh ]; then
    cp config.sh myconfig.sh
fi

source myconfig.sh
Vincent Wei's avatar
Vincent Wei committed
8 9 10

echo UNINSTALL, MAKE, AND INSTALL MiniGUI FIRST...
cd minigui
11
./autogen.sh; ./configure --disable-cursor --with-runmode=$RUNMODE
12
sudo make uninstall; make clean; make -j$NR_JOBS; sudo make install
Vincent Wei's avatar
Vincent Wei committed
13 14 15 16 17 18 19 20 21 22
cd ..

echo UNINSTALL AND CLEAN OTHERS...
for comp in minigui-res mgncs4touch mgncs mgeff mgplus mgutils; do
    cd $comp
    ./autogen.sh; ./configure
    sudo make uninstall; make clean
    cd ..
done

Vincent Wei's avatar
Vincent Wei committed
23
echo MAKE AND INSTALL COMPONENTS NOW...
24
for comp in minigui-res mgutils mgplus mgeff mgncs mgncs4touch; do
Vincent Wei's avatar
Vincent Wei committed
25
    cd $comp
26
    make -j$NR_JOBS; sudo make install
Vincent Wei's avatar
Vincent Wei committed
27 28
    cd ..
done
Vincent Wei's avatar
Vincent Wei committed
29

30 31
echo MAKE AND INSTALL TOOLS, SAMPLES, AND DEMOS NOW...
for comp in mg-tools mg-samples mg-demos cell-phone-ux-demo; do
Vincent Wei's avatar
Vincent Wei committed
32 33
    cd $comp
    ./autogen.sh; ./configure
34
    make clean; make -j$NR_JOBS; sudo make install
Vincent Wei's avatar
Vincent Wei committed
35 36
    cd ..
done