Automatic script to build fresh Abiword and Gnumeric

Post links to your 32-bit module repos here. Repo maintainers are responsible for resolving any issues caused by their xzm's.
Falcony
Full of knowledge
Full of knowledge
Posts: 237
Joined: 01 Jan 2011, 12:44
Location: Russia

Automatic script to build fresh Abiword and Gnumeric

Post#1 by Falcony » 05 Jan 2011, 12:54

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

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Automatic script to build fresh Abiword and Gnumeric

Post#2 by fanthom » 05 Jan 2011, 17:34

Is it necessary to use packages from 3 different Os'es: Slackware, Arch, Crux? Why not stick to Arch or Slackware for example?
Please add [Solved] to your thread title if the solution was found.

Falcony
Full of knowledge
Full of knowledge
Posts: 237
Joined: 01 Jan 2011, 12:44
Location: Russia

Re: Automatic script to build fresh Abiword and Gnumeric

Post#3 by Falcony » 05 Jan 2011, 19:31

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

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Automatic script to build fresh Abiword and Gnumeric

Post#4 by brokenman » 05 Jan 2011, 20:50

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

Falcony
Full of knowledge
Full of knowledge
Posts: 237
Joined: 01 Jan 2011, 12:44
Location: Russia

Re: Automatic script to build fresh Abiword and Gnumeric

Post#5 by Falcony » 05 Jan 2011, 21:57

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

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Automatic script to build fresh Abiword and Gnumeric

Post#6 by brokenman » 05 Jan 2011, 22:12

Very fast & efficient. I only requested this less than an hour ago!!

Thanks.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Falcony
Full of knowledge
Full of knowledge
Posts: 237
Joined: 01 Jan 2011, 12:44
Location: Russia

Re: Automatic script to build fresh Abiword and Gnumeric

Post#7 by Falcony » 06 Jan 2011, 08:29

This is peanut :)

Post Reply