70 lines
4.1 KiB
Plaintext
70 lines
4.1 KiB
Plaintext
### Created and maintained for PeppermintOS by KsWoodsMan, 2022.
|
|
### This config file resides in the Repo holding common files for the rest of the builds.
|
|
### The script sourcing this file is intended to be ran just before build time for the ISOs.
|
|
### In the Dev repos this script is called from the working directory where pepbld.sh is located.
|
|
### In PepDistroConfigs, it's called from the base directory of the repository. Not from the minirepos.
|
|
### In PepDistroConfigs we need a separate config file and IgnoreFile to take in changes from the Dev repos.
|
|
### The script sourcing this config will update the local repo from any external repos listed in that section.
|
|
### The external repos are and should be common to all builds. Small exceptions are made for PepDistroConfigs.
|
|
### PepProTools & PepProPixMaps (and later PepUpdateManager)are pre-core, and get included into CoreFiles.
|
|
### This runs nightly, updating the Dev Repos, getting updates from the pre-core repos and CoreFiles.
|
|
### When updating CoreFiles, Dev repos and PepDistroConfigs we make a special case of PepCoreFiles.
|
|
### This special case is seen with the following , [ $_ExtRepo = "PepCoreFiles" ] && _localdir=""
|
|
### This small change does away with the recursive symlink. use of and need for a Bah-Dah-Bing !
|
|
### We can remove the symlink PepCoreFiles from each of the Dev repos and the Production repo.
|
|
### This way we only have to keep one version of this script, and only a single config file.
|
|
### When updating the Production repo we call the scipt 2x. A first time updates the base.
|
|
### The second time our script's run, the command line options override the config file.
|
|
|
|
|
|
### List the location of the project files.
|
|
### This is expected to be a 'git' repository.
|
|
### Encapsulate the variable inside quotation marks.
|
|
### _ProjectLocation = "https://codeberg.org/Peppermint_OS"
|
|
_ProjectLocation="https://codeberg.org/Peppermint_OS"
|
|
|
|
### "You can't dance while standing in one place"
|
|
### During the routine we cd to other repos and back.
|
|
### This returns us to the same repository we started from.
|
|
### This absolute path is from where the script was called from.
|
|
### Encapsulate the variable inside quotation marks.
|
|
### _myrepo = ${PWD}
|
|
_myrepo="${PWD}"
|
|
|
|
### "Fault tolerance" ensures -X files for `diff` exist.
|
|
### Encapsulate the list inside quotation marks.
|
|
### _ignore = ".git .gitignore .UpdateIgnore LICENSE README.md"
|
|
_ignore=".git .gitignore .UpdateIgnore LICENSE README.md"
|
|
|
|
########## *For PepDistroConfigs* ##########
|
|
### Do NOT list the precore repos here. Those were updated to here on the first run.
|
|
### This is for the second run to update the production repo from each build repo.
|
|
### List the Dev mini repos in this section to be updated for the release builds.
|
|
### List one or all of the Dev repos to be updated, prior to their release build.
|
|
### Defining the Dev repo from the command line will override what's listed here.
|
|
### Available options: -c use this config, -e minirepo to update, -i ignore file to use
|
|
### Encapsulate the list inside quotation marks.
|
|
### _ExtRepositories = "PepOSx86_64 PepOSx86_32 PepOSDevuan_32 PepOSDevuan_64 "
|
|
_ExtRepositories="PepOSx86_64 PepOSx86_32 PepOSDevuan_32 PepOSDevuan_64 "
|
|
|
|
########## *For PepDistroConfigs* ##########
|
|
### This location will be local for the mini repositories.
|
|
### Set the relative location of the IgnoreFile used.
|
|
### Encapsulate the variable inside quotation marks.
|
|
### _IgnoreFile = ".MiniRepoIgnoreList"
|
|
_IgnoreFile=".MiniRepoIgnoreList"
|
|
|
|
|
|
### During the routine, we count the number of changes found.
|
|
### At the end we compare the number of steps made to the extra changes found.
|
|
### When there are no changes found count and commit increment at the same rate.
|
|
### At the end, if commit is greater than count we use `git` to push the changes.
|
|
### With the script in the current form there is no good reason to edit or change these.
|
|
### _commit = "0" ### increases as it finds changes. Used after all routines are completed.
|
|
### _count = "0" ### with each iteration of the `for` loop , _count will increment at $_step rate.
|
|
### _step = "1" ### _step = the number of nested `until` loops in the main `for` loop.
|
|
_commit="0"
|
|
_count="0"
|
|
_step="1"
|
|
|