On 07/25/2012 08:40 PM, David C. Rankin wrote:
On 07/25/2012 07:59 PM, David C. Rankin wrote:
On 07/25/2012 07:00 PM, Slávek Banko wrote:
I am aware that it is now difficult. This is
based on the fact that in the
beginning of the work I have no idea about the extent SRU release, so I just
cloned the individual projects. Indeed, in the beginning I did not even have
write access to GIT :)
But I'm working on improving the situation. Currently I walking through
patches in the tde-packaging (for debian + ubuntu). Right after that I plan
to prepare v3.5.13-sru in 'tde'.
I'll post the script when I'm done along with a list of all modules that
presently have -sru branch. Good work :)
Slávek
Thank you for pointing me in the right direction. I have attached the list of
modules that I checked out to v3.5.13-sru along with the script I used to do it.
(see if the list looks complete)
NOTE: this script is just used to change to v3.5.13-sru the *first* time and
log which modules were switched. It is NOT used to update modules you have
already switched. (I'll have to write another to test git branch -l against git
branch -r before checkout, pull and submodule update).
But this works and I can create tarballs from v3.5.15-sru now :)
Updated script. This is somewhat of a TDE GIT swiss-army knife. Here is the -h
help info:
Usage: gitcosru.sh [-u, -w] [-l, -s (branchname)]
gitcosru.sh (options) [(branchname)] will write commands to stdout needed to
create tarballs from your local TDE GIT tree (default - no options/arguments).
When called with the '-w' argument, the script will create tarballs from from
your local GIT tree in the directory specified by 'tgzpath' within the script.
When called with the '-u' option, it will update the current GIT tree.
The '-l' and '-s branchname' options will (-l) list the current branch for
each module in the git tree and (-s branchname) will switch each module in the
GIT tree to the given GIT branch if it is available for that module. In
addition a 'git pull' and 'git submodule update' are called on each module
switched.
NOTE:: You MUST set the variables 'tdepath' and 'tgzpath' (and
'gituser') in
the script for the script to work. tdepath is the path to your local GIT tree
and tgzpath is where you want the completed tarballs placed. gituser
(optional) is just your username for the TDE GIT tree. Enjoy.
ALSO note that the list of modules, branches, and available branches is
written to a temporary file /tmp/v3.5.13-sru_modules-$date.txt. Example:
15:43 providence:~/pvd/tde13/tde> cat /tmp/v3.5.13-sru_modules-20120726-153123.txt
module: common branch: master available:
HEAD master
module: tdeaccessibility branch: v3.5.13-sru available:
HEAD master v3.5.13-sru
module: tdeaddons branch: v3.5.13-sru available:
HEAD master v3.5.13-sru
module: tdeadmin branch: v3.5.13-sru available:
HEAD master v3.5.13-sru
module: tdeartwork branch: v3.5.13-sru available:
HEAD master v3.5.13-sru
module: tdebase branch: v3.5.13-sru available:
HEAD master v3.5.13-sru
module: tdebindings branch: v3.5.13-sru available:
HEAD master v3.5.13-sru
You can just disable this in the script if you don't want the list generated.
It is also written to stdout (via | tee -a).
--
David C. Rankin, J.D.,P.E.