xfce 4.4.3 build script kezdemény

Forráskód: http://sourceforge.net/projects/xfce/files/xfce-4.4/4.4.3/xfce-4.4.3-sr…

Kicsomagol. Script elhelyez abban a könyvtárban amit kicsomagolt (az src könyvtár mellé).

!UPDATED! egyszerű hibakezelés

A script:


#!/bin/bash

mXFCE_C_PATH=`pwd`
mBUILD_LOG='configure.log'

cd src
pwd
echo "Make xfce4.4" > $mBUILD_LOG
echo >> $mBUILD_LOG
#for i in *; do tar -xvf "$i"; done;

for i in `ls -lr | grep ^d | cut -d: -f2 | cut -d\  -f2`;
    do
        cd $i
        rm _zion_config 2>/dev/null
        cd ..
done;

function my_echo() {
    echo $1
    echo $1 >> "$mXFCE_C_PATH/$mBUILD_LOG"
}

function config_module {
    my_echo "CONFIGURE $1"
    echo >> configure.log
    cd "$1"
    if [ -e _zion_config ]; then
        my_echo " -> zion config found"
    else
        my_echo " -> config & make & make install"
        ./configure >> ../configure.log && make && make install
        ok=$?
        echo " -- $ok -- "
        touch _zion_config
        cd .. 
        if [ $ok -gt 0 ]; then
            my_echo "ERROR"
            exit 1
        else 
            my_echo "SUCCES"
            my_echo ""
        fi
    fi
}

#list from: http://www.xfce.org/documentation/4.4/requirements
config_module 'xfce4-dev-tools-4.4.0.1'
config_module 'libxfce4util-4.4.3'
config_module 'libxfcegui4-4.4.3'
config_module 'libxfce4mcs-4.4.3'
config_module 'exo-0.3.4'
config_module 'xfce-mcs-manager-4.4.3'
config_module 'xfce-mcs-plugins-4.4.3'
config_module 'xfce4-panel-4.4.3'
config_module 'Thunar-0.9.3'
config_module 'xfce4-session-4.4.3'
config_module 'xfwm4-4.4.3'
config_module 'xfdesktop-4.4.3'
config_module 'xfce-utils-4.4.3'
config_module 'xfprint-4.4.3'
config_module 'gtk-xfce-engine-2.4.3'
config_module 'mousepad-0.2.14'
config_module 'Terminal-0.2.8.3'
config_module 'xfce4-appfinder-4.4.3'
config_module 'xfce4-mixer-4.4.3'

#maradék
for i in `ls -lr | grep ^d | cut -d: -f2 | cut -d\  -f2`;
    do
        config_module $i
done;

exit 0;

Nincs letesztelve, de nagyjából jónak kell lennie, és csak azért került ide, hogy mindenképpen meglegyen, ha keresem :)

Hozzászólások

A menü miatt... A 4.6 hatoshoz, ha jól sejtem még mindig nincs menüeditor, ráadásul még a 4.4es xml-jét is könnyebb kézzel összedobni. A teljesen egyedi menüre meg a produktivitás miatt van szükség: pl ssh a fejlesztői szerverre, adott könyvtárba lépés, és terminálos psql kliens indítás egy katt a menüben, és ez csak egy példa a sok közül...

Viszont a 8.10es ubimat már frissíteném egyéb okok miatt, de az újabbakban csak 4.6os, így frissítés után fel kell majd reszelnem a 4.4et.

(Azt hiszem elég kimerítő volt :))