[Gambas-user] svn automation scripts
Jussi Lahtinen
jussi.lahtinen at ...626...
Mon Jan 31 19:58:34 CET 2011
I have use these scripts lately.
This updates sources and writes change log on Desktop (if there is anything
new):
<code>
#!/bin/sh
cd ~/trunk
NUM=0
echo "Please wait..."
`svn update > /tmp/gambasupdt` && NUM=`wc -l /tmp/gambasupdt | tr -d
/[:alpha:]`
if [ "$NUM" -gt "1" ]; then
echo "Writing change log to Desktop..."
( svn log ) > ~/Desktop/changed.log 2>&1
echo "Done!"
else
echo "Sources are already up to date!"
fi
</code>
You can edit this script to automatically compile new revision.
However I do not recommend to do so!
Because compilation takes quite a while and not all updates are beneficial
to you to compile.
So, I recommend to compile only if new revision has bug fix, new feature,
etc. that concerns you.
My script to compile sources (first three commands may be unnecessary,
because of "sudo make clean"):
*
*<code>*
*#!/bin/sh
sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3
/usr/local/bin/gbi3
sudo rm -rf /usr/local/lib/gambas3
sudo rm -rf /usr/local/share/gambas3
cd ~/trunk
sudo make clean
echo "Old installation cleaned!"
./reconf-all && ./configure -C && make && sudo make install
sudo -k
echo "Done! (also sudo -k)."*
*</code>
Jussi
On Mon, Jan 31, 2011 at 04:57, John Spikowski <support at ...2529...>wrote:
> List,
>
> I'm a little late to the party but excited by how much progress Gambas
> has made since my first introduction around 1.7.
>
> I'm also rather new to using svn as a tool to keep in sync with the dev
> team of such a large project. What is a reasonable method of updating
> your local trunk and doing another recompile?
>
> Is there a way to minimize the build time involved other than the -C for
> configure?
>
> In a perfect world, I would like to have a script that checks to see if
> there have been any updates and if so continue with an auto build of
> Gambas 3. I would also like to have a log of any warnings so I don't
> have to read through pages of redirected compiler output searching for
> them.
>
> If you have something like this already built and willing to share, it
> would save me from recreating another wheel.
>
> John
>
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list