[scribus] Scribus 1.5.0 version.
Tornoci Laszlo
torlasz at net.sote.hu
Wed Jan 20 10:42:04 CET 2010
On 01/20/2010 12:10 AM, Jan Schrewe wrote:
> Am Dienstag, 19. Januar 2010 19:23:22 schrieb John Culleton:
>> The latest version of 1.5.0 seems frozen at the January 9 update. Or so the
>> help screen says. Is that in fact the latest or am I downloading the wrong
>> file?
>>
>> Here is my script, run as root.
>> ----------------------------------------
>> mkdir ~/src/
>> mkdir ~/src/scribus_svn
>> rm -r ~/src/scribus_svn/*
>> sudo mkdir /usr/local/scribus_svn
>> cd ~/src/scribus_svn
>> svn co svn://scribus.info/Scribus/trunk/Scribus
>> cd ./Scribus
>> cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/scribus_svn
>> make
>> sudo make install
>> -----------------------------------------------------------
>>
>> Any criticism?
>>
>
> Hi,
>
> Attached is a script that builds in a seperate directory from the svn
> repository and runs a svn update if the repository is already checked out. The
> script creates all directories necessary if they aren't already there. Note
> that there is no make clean, make should be smart enough to get the
> dependencies, so that should make the build shorter.
>
> It is not really tested (in fact I have just written it for this mail) but it
> should work. If it doesn't, it it should be easy to debug it.
>
> Jan
>
> ---
>
> #!/bin/bash
>
> # change to wherever you like to build
> PREFIX=/home/username
>
> # cmake options
> CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX:PATH=/usr/local/scribus_svn"
>
> #make options e.g. -j2 for dual core
> # use "" for no options
> MAKE_OPTS="-j2"
>
> ##############################################
>
> # change into build directory
> # if it doesn't exist create it
> if [ ! -d $PREFIX/scribus_svn ]
> then
> mkdir $PREFIX/scribus_svn
> fi
> cd $PREFIX/scribus_svn
>
> # do the svn stuff
> if [ ! -d ./scribus-svn ]
> then
> # we need to da a checkout
> svn co svn://scribus.info/Scribus/trunk/Scribus scribus-svn
> else
> # just run an upgrade
> svn up scribus-svn
> fi
>
> # we keep the build and the svn repo in
> # different directories
> if [ ! -d ./scribus-build ]
> then
> mkdir scribus-build
> fi
>
> cd scribus-build
> cmake ../scribus-svn $CMAKE_OPTS
> make $MAKE_OPTS
>
> sudo make install
>
Hi,
John, this approach is really better than yours: it is faster, and if
you want a clean new SVN checkout & build for any reason, just delete
the directory specified for PREFIX!
Yours: Laszlo
here's my slightly modified version:
#!/bin/bash
# uncomment one of the following SVN branches, see:
# http://wiki.scribus.net/index.php/Building_SVN_versions_with_CMake
#SVN_BRANCH=scribus.info/trunk/Scribus
SVN_BRANCH=scribus.info/Scribus/branches/Version135/Scribus
#SVN_BRANCH=scribus.info//branches/Version133x/Scribus
PREFIX=~/src/scribus135 # main dir contatining SRC & BUILD
SRC=scribus_src # subdir containing source
BUILD=scribus_build # subdir for building
# cmake options: define install dir
CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX:PATH=~/scribus/scribus135"
#make options e.g. -j2 for dual core
# use "" for no options
MAKE_OPTS="-j2"
##############################################
# you may have to use "sudo make install" at the end
# change into main directory
# if it doesn't exist create it
if [ ! -d $PREFIX ]
then
mkdir -p $PREFIX
fi
cd $PREFIX
# get source through svn
if [ ! -d ./$SRC ]
then # do a new, clean checkout
svn co svn://$SVN_BRANCH $SRC
else # update only
svn up $SRC
fi
# build scribus
# create dir if necessary
if [ ! -d ./$BUILD ]
then
mkdir $BUILD
fi
cd $BUILD
cmake ../$SRC $CMAKE_OPTS
make $MAKE_OPTS
make install
More information about the scribus
mailing list