Page 1 of 1

Automatic script to build fresh Abiword and Gnumeric

Posted: 05 Jan 2011, 12:54
by Falcony
Automatic script to build fresh versions of Abiword and Gnumeric


You could easly build and update software to freshh version via automatic scripts using FIDOSlax Tools

This is sample script will create fresh Abiword and Gnumeric and fresh version of its depends

Before running this script please install FIDOSlax tools as it descibed here:

http://porteus.org/forum/viewtopic.php?f=51&t=105

Then use this script to rebuild software

Code: Select all


#!/bin/sh

echo "Installing tools needed for building from repository"

lzm_add bison
lzm_add boost
lzm_add flex
lzm_add readline

echo "Begin building AbiWord and Gnumeric"
arch-build libtasn1
arch-build gnutls
arch-build fribidi
crux-build libgnomecups
slax-build wv
crux-build libidl
slax-build ORBit2
crux-build gconf
slax-build goffice
slax-build gnome-mime-data
slax-build libbonobo
slax-build gnome-vfs
arch-build librsvg
slax-build gnumeric
slax-build abiword

Re: Automatic script to build fresh Abiword and Gnumeric

Posted: 05 Jan 2011, 17:34
by fanthom
Is it necessary to use packages from 3 different Os'es: Slackware, Arch, Crux? Why not stick to Arch or Slackware for example?

Re: Automatic script to build fresh Abiword and Gnumeric

Posted: 05 Jan 2011, 19:31
by Falcony
SlackBuilds.org and CRUX port conservative maintainers and trying to use stable software versions
But for slax-build and crux-build you select what version application to build(it ask user)

arch-dep and arch-build always build most freshes application - as Arch Linux maintainers always hurry up with updates

Except of version of application SlackBuilds, Arch ABS&AUR and CRUX ports differs by building commands, options of configure and patches.

If you like or have a time to find out why appication X building failed - no problem, you may stick to some tool closer or even send e-mail to package mainteiner with patch

If you need just build new application - then in case of one tool failed - just try other

Re: Automatic script to build fresh Abiword and Gnumeric

Posted: 05 Jan 2011, 20:50
by brokenman
A check for existing local modules would be nice. I already have these on my system and they are not small files:

lzm_add bison
lzm_add boost
lzm_add flex
lzm_add readline

Re: Automatic script to build fresh Abiword and Gnumeric

Posted: 05 Jan 2011, 21:57
by Falcony
It could be done as such

Code: Select all

#!/bin/sh

echo "Checking additional needed modules..."

rm -rf /tmp/lzmcheck.txt

echo "bison" > /tmp/lzmcheck.txt
echo "boost" >> /tmp/lzmcheck.txt
echo "flex" >> /tmp/lzmcheck.txt
echo "readline" >> /tmp/lzmcheck.txt

NUMBER=`cat /tmp/lzmcheck.txt | wc -l`
i=1
echo "Looking for already activated modules"
NUMBER=$(($NUMBER+1))
while [ "$i" -ne "$NUMBER" ]
do
DEP=`sed -n ""$i"p" /tmp/lzmcheck.txt`
CHECKACTIVATED=`additional_lzm_check "$DEP"`
if [ "$CHECKACTIVATED" = "not activated" ]; then
echo "Need additional module for building support..."
echo "Installing tools needed for building from repository"
echo "lzm_add "$DEP""
echo
fi
i=$(($i+1))
done

rm -rf /tmp/lzmcheck.txt

echo "Begin building AbiWord and Gnumeric"
arch-build libtasn1
arch-build gnutls
arch-build fribidi
crux-build libgnomecups
slax-build wv
crux-build libidl
slax-build ORBit2
crux-build gconf
slax-build goffice
slax-build gnome-mime-data
slax-build libbonobo
slax-build gnome-vfs
arch-build librsvg
slax-build gnumeric
slax-build abiword
additional_lzm_check - checks loaded module - part of lzm-utils

Re: Automatic script to build fresh Abiword and Gnumeric

Posted: 05 Jan 2011, 22:12
by brokenman
Very fast & efficient. I only requested this less than an hour ago!!

Thanks.

Re: Automatic script to build fresh Abiword and Gnumeric

Posted: 06 Jan 2011, 08:29
by Falcony
This is peanut :)