This routine creates and updates the git repositories local copies.
If this is a first run, answer 'yes' - be patient, downloads from git are slowwww...
For subsequent runs, 'yes' will update only.
Local repositories are created/updated as for the single downloads for R14.0.4 builds.
If the current build list includes new apps, and you don't want the existing repos updated, the new apps should be run as a new group initially as selective updating is not supported.
Do you want to create or update the git repositories?
## If there is a download failure in getsource_fn, it needs to be communicated to this script if the build is set to stop on failure
## getsource_fn is a function in get-source.sh which is a child of the SlackBuild script which is a child of this script and that failure needs to be carried back here
## $TMPVARS/download-failure will be created if needed for that purpose, so remove any possible previous file
The individual TDE apps can be cloned from Trinity git, so the build is set up to do that - except for individual language packs of tde-i18n. The whole tde-i18n download is ~1x10^6 bytes, so to reduce that, wget is used to download individual tde-i18n-ab_CD packs as they are not git repositories.
Once any git repository has been cloned, further downloads are updates only.
This gives the best options - only fetching what is needed, and incremental updates.
The git repositories are cloned to 'src/cgit', arranged in this tree format ignoring whether they are in Core, Deps, etc.
src
:
└── cgit
├── admin
├── cmake
:
├── tqt3
:
├── tdelibs
:
├── tdei18n
: └── cgit
└── tde-i18n
└── plain
├── tde-i18n-en_GB
└── tde-i18n-ru
For the build, these repositories are copied to the build area where the R14.0.4 archives would otherwise be extracted. admin & cmake are also always copied, and libltdl where it's needed.
This has resulted in most of the modifications being in the main scripts, BUILD-TDE.sh and get-source.sh [in getsource_fn and untar_fn]. tde-i18n.SlackBuild had to be modified because it doesn't use untar_fn. Some other *.SlackBuild modifications are work-arounds to accommodate the patching already included in the git sources.
As this is in beta stage, I've left in the markers I use in get-source.sh to give a better idea of where the build is failing.