On 16 February 2012 09:54, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
On 02/16/2012 08:41 AM, David C. Rankin wrote:
> On 02/16/2012 08:32 AM, Robert Xu wrote:
>>
>> You need to checkout git submodules.
>> (That's what the README about GIT on the wiki is for.)
>>
>> git submodule update --init
>>
>>
>
>   I checked out the entire source tree and according to the wiki page:
>
> To check out the entire source tree
>
> git clone http://<username>@scm.trinitydesktop.org/scm/git/tde
> cd tde
> ./scripts/switch_all_submodules_to_head_and_clean
>
>   That's exactly what I did. According to the wiki, the 'git submodule update
> --init' only applies "To check out a single project"
>
>   Is this wrong?
>

 There is definitely something wrong with the git clone or the
switch_all_submodules_to_head_and_clean script. I ran the 'git submodule update
--init' you suggested and it did nothing for dependencies/tqtinterface/cmake
contents. Then, since the output looked the same as it did when I ran the
switch_all_submodules_to_head_and_clean script originally, I checked the script
and it already did that:

if [[ -e .gitmodules ]]; then
       if [[ $gituser == "anonymous" ]]; then
               sed -i 's/system@//g' .gitmodules
       else
               sed -i "s/system@/$gituser@/g" .gitmodules
       fi

       git submodule init
       git submodule update
       git submodule foreach "git checkout master"
       git submodule foreach "git pull"
       git submodule foreach "$THISSCRIPT $gituser"

       git checkout -- .gitmodules
fi

 Something doesn't make sense... Is there something wrong with the repository
or the script or the wiki? I have run:

git clone http://drankin@scm.trinitydesktop.org/scm/git/tde
./scripts/switch_all_submodules_to_head_and_clean

git pull (subsequently -- and followed each time by another )
./scripts/switch_all_submodules_to_head_and_clean

Then on your suggestion I ran:
git submodule update --init

 I still have no TDEMacros or anything else in:

08:50 archangel:/dat_f/tde> l main/dependencies/tqtinterface/cmake/
total 8
drwxr-xr-x 2 david david 4096 Feb  8 18:47 .
drwxr-xr-x 5 david david 4096 Feb  8 18:47 ..

 According to git, everything is up to date:

08:52 archangel:/dat_f/tde> git pull
Already up-to-date.

 What gives?

--
David C. Rankin, J.D.,P.E.


git pull --recurse-submodules works for me.