From: ebik <eb...@dr...> - 2011-04-12 22:54:09
Attachments:
signature.asc
|
We rely on GNUMake anyway, thus I added some Make automagic, that detects if libtu and/or libextl is copied into properly named subdirectory of notion, and setups then accordingly (it behaves then like makefiles in snapshot, i.e., the included libtu and libextl uses system.mk and others of the parent directory (notion)). The main idea is to pass a make variable SUBMODULE=1 to subdirectories, and let libtu and libextl makefiles set TOPDIR to .. when they detect this variable. The second part is autodetection in libs.mk, that uses libtu and libextl from subdirectories of notion, if they are there. I also added autodetection, if there is lua5.1 in pkg-config. If so, then 'debian' way of lua setup is used, otherwise '/usr/local/...' paths are used. The branches are on standard location: http://drak.ucw.cz/~ebik/git/notion http://drak.ucw.cz/~ebik/git/libtu http://drak.ucw.cz/~ebik/git/libextl These patches are more or less needed, if we want to use git-submodule. The second step is to setup the submodules properly, so that they will be automatically checked in 'libtu' and 'libext' subdirectories, when user types: git submodule update --init (after the initial clone, subsequent updates need not the --init option) The nice thing on submodules is, that git knows (i.e., commiter must tell) which versions(comits) of submodules belongs to particular commit of project that includes these submodules. Here is the git documentation: http://book.git-scm.com/5_submodules.html -- Tomáš 'ebík' Ebenlendr PF 2011.27951303272 |
From: Arnout E. <no...@bz...> - 2011-04-24 16:46:18
|
On Wed, Apr 13, 2011 at 12:53:57AM +0200, ebik wrote: > We rely on GNUMake anyway, thus I added some Make automagic, that > detects if libtu and/or libextl is copied into properly named > subdirectory of notion, and setups then accordingly (it behaves then > like makefiles in snapshot, i.e., the included libtu and libextl uses > system.mk and others of the parent directory (notion)). The main idea > is to pass a make variable SUBMODULE=1 to subdirectories, and let libtu > and libextl makefiles set TOPDIR to .. when they detect this variable. Sounds reasonable, pushed the changes in libtu and libextl > The second part is autodetection in libs.mk, that uses libtu and > libextl from subdirectories of notion, if they are there. > > I also added autodetection, if there is lua5.1 in pkg-config. If so, > then 'debian' way of lua setup is used, otherwise '/usr/local/...' > paths are used. Sounds good, however... > The branches are on standard location: > http://drak.ucw.cz/~ebik/git/notion > http://drak.ucw.cz/~ebik/git/libtu > http://drak.ucw.cz/~ebik/git/libextl it seems there's something wrong with the notion repo: arnouten@jaga:/tmp$ git clone http://drak.ucw.cz/~ebik/git/notion Cloning into notion... fatal: http://drak.ucw.cz/~ebik/git/notion/info/refs not found: did you run git update-server-info on the server? arnouten@jaga:/tmp$ Could you look into that? Thanks & kind regards, Arnout |
From: ebik <eb...@dr...> - 2011-04-25 09:52:35
Attachments:
signature.asc
|
> > The branches are on standard location: > > http://drak.ucw.cz/~ebik/git/notion > > http://drak.ucw.cz/~ebik/git/libtu > > http://drak.ucw.cz/~ebik/git/libextl > > it seems there's something wrong with the notion repo: > > arnouten@jaga:/tmp$ git clone http://drak.ucw.cz/~ebik/git/notion > Cloning into notion... > fatal: http://drak.ucw.cz/~ebik/git/notion/info/refs not found: did > you run git update-server-info on the server? arnouten@jaga:/tmp$ > > Could you look into that? Hmm, I managed to get fresh empty repository there when I was creating some other repositories. Now it should be fixed. -- Tomáš 'ebík' Ebenlendr PF 2011.31367865297 |