[Qt-interest] Keeping up-to-date with git

Stephen Chu stephen at ju-ju.com
Thu May 27 16:03:09 CEST 2010


In article <20100525045618.GA27639 at trinity.apaku.dnsalias.org>,
 Andreas Pakulat <apaku at gmx.de> wrote:

> On 24.05.10 18:21:15, Stephen Chu wrote:
> > In article <201005242138.02213.kde at mosehansen.dk>,
> >  Esben Mose Hansen <kde at mosehansen.dk> wrote:
> > 
> > > On Monday 24 May 2010 16:07:46 Stephen Chu wrote:
> > > > I know I need to do a 'git fetch' to get the new commits. Then should I 
> > > > just do a 'make' then a 'make install' or should I run 'configure' 
> > > > again 
> > > > before that?
> > > 
> > > You probably want "git pull", not git fetch. Git fetch will not update 
> > > the 
> > > current branch, so you will get no new code.
> > > 
> > > You probably don't need to run configure again, though it doesn't hurt.
> > 
> > Thanks.
> > 
> > Does re-running configure cause it to re-compile the whole thing?
> 
> No, but it does cause more recompilation than a plain make. Sometimes
> though running configure is necessary.
> 
> > I am trying to avoid rebuild the whole thing since it takes so long to
> > do it.
> 
> I suggest to add -nomake examples -nomake demos to the configure line.
> This disables building of the examples and demos which takes quite a lot
> of time because qmake is so slow and is run for each of them. Also if
> you don't want to distribute your Qt it might make sense to add -release
> or -debug to build only debug or release libraries (default is building
> both).  That should help your compilation times quite a bit.
> 
> Andreas

So I end up doing a git pull, clean and rebuild every day. I want to put 
the steps into a OS X shell script and run it every night. But how do I 
skip the step where configure asks for the type of license? I added 
-opensource option but it still waits for a yes/no input.

Here's the script:

----
#!/bin/sh
cd /qt
git clean -f
git pull
make confclean
./configure -opensource -debug-and-release -arch "x86 ppc x86_64" 
-nomake demos -nomake examples -nomake translations
make
sudo make -j1 install
----

I am fine with the wait for su password at the end since I will just 
type it in in the morning and the install is fast enough.

-- 
Stephen Chu



More information about the Qt-interest-old mailing list