Hi,

for my project where I'm using plplot I wrote a script which downloads  
the plplot package (and others) and compiles everything, since I  
develop on several computers. Anyway, I always download the  
plplot-5.9.0 package and this has the disadvantage, that some changes  
are not included. On the other side I also don't want to have the  
latest svn code for several reasons. Therefore I wrote another script,  
which exports the latest svn code, package it to a tar.gz and send it to

http://www.miscdebris.net/plplot_weeklies/

on a weekly basis (using a cron job). So than I can always use a  
package which I know works and has all the features included I want.  
Maybe others are interested as well, also if someone doesn't want to  
install a svn client. Added that to the wiki.

One question though: my script is based on the make_tarball.sh script  
in the scripts directory. I can't use it directly since on the  
computer where my scripts run I don't have some packages which are  
needed to pass the PREBUILD_DIST stage (which is always ON). So I  
package the plplot source with -DPREBUILD_DIST=OFF -DBUILD_DOC=OFF -  
is this a problem? The script looks like this

#!/bin/bash

DATE=`date +%y%m%d`

echo "creating temporary directories"
rm -rf /tmp/plplot
mkdir -p /tmp/plplot/build

echo "getting last svn version of plplot"
cd /tmp/plplot
svn export https://plplot.svn.sourceforge.net/svnroot/plplot/trunk  
source

echo "creating package"
cd /tmp/plplot/build
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DDEFAULT_NO_BINDINGS=ON - 
DDEFAULT_NO_DEVICES=ON \
-DPREBUILD_DIST=OFF -DBUILD_DOC=OFF ../source >& cmake${DATE}.out
make package_source >& make_package_source${DATE}.out

echo "scopying packages to miscdebris.net"
TARBALL=`ls plplot-*.tar.gz`
scp $TARBALL [EMAIL PROTECTED]:plplot_weeklies/`basename $TARBALL tar.gz`-$ 
{DATE}.tar.gz

Regards,
Werner

--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: [EMAIL PROTECTED]
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to