2023-05-09 08:14:20 +02:00
# <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> smeserver-gitutils
2023-05-09 05:46:40 +02:00
Utilities to use with smeserver on Koozali.org GITEA instance
2023-05-12 02:31:25 +02:00
Just a repackaging of some of Brian Read's tools with some modifications for the new git structure and some tidy-up of the ini file and debug statements
2023-05-09 05:46:40 +02:00
2023-06-01 06:38:29 +02:00
## config
2023-05-10 02:49:40 +02:00
sample ~/.smegit/config or /etc/smegit.ini file - fill in your details\
It will use the user config first and system ini, if user config does not exist
2023-05-09 09:53:44 +02:00
2023-06-01 06:38:29 +02:00
## git-cvs2git.sh
copy current cvs version of a package across to git in new structure
git-cvs2git.sh < repository > < organisation > [< local > ]
2023-06-01 06:40:10 +02:00
* \<repository\> repository (package) to be migrated (e.g. smeserver-yum)
* \<organisation\> can ONLY be smeserver or smecontribs
2023-06-02 03:59:49 +02:00
optional parameters, can appear in any order
2023-06-01 06:38:29 +02:00
* \<local\> will migrate into your local GITEA (in config), otherwise remote GITEA
2023-06-02 03:59:49 +02:00
* \<debug\> run in debug mode
2023-06-01 06:38:29 +02:00
## git-get-and-build-repo.sh
bring down current git repository and run mockbuild
2023-06-02 03:59:49 +02:00
git-get-and-build.sh < organisation > < repository > [< local > < debug > ]
2023-06-01 06:38:29 +02:00
2023-06-01 06:40:10 +02:00
* \<repository\> repository (package) to be built (e.g. smeserver-yum)
2023-06-02 03:59:49 +02:00
* \<organisation\> can be any organisation or user on the remote GITEA instance
optional parameters, can appear in any order
2023-06-01 06:38:29 +02:00
* \<local\> will build from local GITEA (in config), otherwise from remote GITEA
2023-06-02 03:59:49 +02:00
* \<debug\> run in debug mode
2023-06-01 06:38:29 +02:00
## git-migrate-repo.sh
create mirror or copy of src.koozali.org repository in a local GITEA instance
2023-06-02 03:59:49 +02:00
git-migrate-repo.sh < repository > < organisation > [< copy | mirror > < target organisation > < debug > ]
2023-06-01 06:38:29 +02:00
2023-06-01 06:40:10 +02:00
* \<repository\> repository (package) to be copied (e.g. smeserver-yum)
2023-06-02 03:59:49 +02:00
* \<organisation\> can be any organisation or user on the remote GITEA instance
* \<debug\> run in debug mode
optional parameters, can appear in any order
2023-06-01 06:40:10 +02:00
* \<copy|mirror\> will create local repo as either a copy or a mirror of the remote repo (default = copy)
2023-06-01 06:38:29 +02:00
* \<target organisation\> within your local GITEA, otherwise local user - must exist already
2023-06-02 03:59:49 +02:00
* \<debug\> run in debug mode
2023-06-01 06:38:29 +02:00
## git-migrate-org.sh
create mirrors of all repos for an organisation in a local GITEA instance
2023-06-02 03:59:49 +02:00
git-migrate-org.sh < organisation > [< copy | mirror > < review > < target organisation > < debug > ]
* \<organisation\> can be any organisation or user on the remote GITEA instance
optional parameters, can appear in any order
2023-06-01 06:38:29 +02:00
2023-06-01 06:40:10 +02:00
* \<copy|mirror\> will create local repos as either a copy or a mirror of the remote repos (default = copy)
* \<review\> will just list the repos to be migrated, rather than doing it
2023-06-01 06:38:29 +02:00
* \<target organisation\> within your local GITEA, otherwise local user - must exist already
2023-06-02 03:59:49 +02:00
* \<debug\> run in debug mode
* \<noisy\> show each repo being migrated
2023-06-01 06:38:29 +02:00
## rename-e-smith-pkg.sh
Rename an e-smith package as smeserver and change relevant files
rename-emith-pkg.sh < pkg > [< organisation > < local > < force > < debug > ]
* \<pkg\> Module name to be renamed e.g. e-smith-dnscache
optional parameters, can appear in any order
2023-06-01 06:40:49 +02:00
* \<organisation\> (any gitea organisation smeserver, smecontribs or user - defaults to smeserver)
* \<local\> will use parameters set for local repository else it will use remote
* \<force\> will automagically delete an existing repo, otherwise it will prompt
2023-06-01 06:38:29 +02:00
* \<debug\> run in debug mode
2023-06-02 03:47:11 +02:00
This works whether the repo and local files exist of not (it deletes them if necessary)
## parse-list.sh
Parse a list of parameters and execute script with those parameters
2023-06-03 09:04:49 +02:00
parse-list.sh < param file | org = 'organisation > < script > [ < l o c a l > < n o i s y > < a d d i t i o n a l > < a d d i t i o n a l > < a d d i t i o n a l > ]
2023-06-02 03:47:11 +02:00
2023-06-03 09:06:40 +02:00
* \<param file\|org='organisation'> name of file containing parameters or organisation which will be used to generate a list of all repos for input to \<script\>
2023-06-02 03:47:11 +02:00
* \<script\> script to run (e.g. rename-e-smith-pkg.sh)
optional params can appear in any order
2023-06-03 09:07:31 +02:00
* \<local\> used with org= and will use local GITEA instance, default remote - will be passed to \<script\>
2023-06-02 03:47:11 +02:00
* \<noisy\> show line being executed
2023-06-03 09:09:24 +02:00
* \<review\> show line being executed, but NOT executing
2023-06-02 15:34:55 +02:00
* \<additional\> additional params to be passed (up to 3) e.g. debug,force,local
## git-post-create-repo.sh
Update a repo created from a template (contribs,base or 3rd party) with things not able to be updated from the template:
2023-06-02 15:36:24 +02:00
* \<repository\> repository (package) to be editted (e.g. smeserver-yum)
* \<organisation\> can be any organisation or user on the remote or local GITEA instance
2023-06-02 15:34:55 +02:00
optional:
* \<local\> will migrate into your local GITEA (in config), otherwise remote GITEA
Does:
Rename spec file
2023-06-02 15:36:24 +02:00
Set current date in change log
2023-06-02 15:34:55 +02:00
Set Wiki and Issues links external (SME Wiki and Bugzilla)