Scripts to help in the creation and maintenance of the GITEA git repos for SMEServer and SMEContribs.
Go to file
2023-06-02 15:36:24 +02:00
changelog add in changelog script 2023-05-30 12:44:27 +10:00
config put back USER for local & remote 2023-05-10 13:04:48 +10:00
git-cvs2git.sh remove suppress from git clone 2023-06-02 21:28:05 +10:00
git-get-repo-and-build.sh add system default ini and allow ~ in workdir 2023-05-10 10:17:35 +10:00
git-migrate-org.sh missing space 2023-05-12 10:39:23 +10:00
git-migrate-repo.sh change from mirror to migrate (copy or mirror) 2023-05-11 10:48:31 +10:00
git-post-create-repo.sh Add post create frm template script 2023-06-02 14:26:42 +01:00
parse-list.sh add parse-list.sh script 2023-06-02 11:38:02 +10:00
README.md Typos. 2023-06-02 15:36:24 +02:00
rename-e-smith-pkg.sh suppress all output 2023-06-02 11:15:30 +10:00

smeserver-gitutils

Utilities to use with smeserver on Koozali.org GITEA instance

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

config

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

git-cvs2git.sh

copy current cvs version of a package across to git in new structure

git-cvs2git.sh <repository> <organisation> [<local>]
  • <repository> repository (package) to be migrated (e.g. smeserver-yum)
  • <organisation> can ONLY be smeserver or smecontribs

optional parameters, can appear in any order

  • <local> will migrate into your local GITEA (in config), otherwise remote GITEA
  • <debug> run in debug mode

git-get-and-build-repo.sh

bring down current git repository and run mockbuild

git-get-and-build.sh <organisation> <repository> [<local> <debug>]
  • <repository> repository (package) to be built (e.g. smeserver-yum)
  • <organisation> can be any organisation or user on the remote GITEA instance

optional parameters, can appear in any order

  • <local> will build from local GITEA (in config), otherwise from remote GITEA
  • <debug> run in debug mode

git-migrate-repo.sh

create mirror or copy of src.koozali.org repository in a local GITEA instance

git-migrate-repo.sh <repository> <organisation> [<copy|mirror> <target organisation> <debug>]
  • <repository> repository (package) to be copied (e.g. smeserver-yum)
  • <organisation> can be any organisation or user on the remote GITEA instance
  • <debug> run in debug mode

optional parameters, can appear in any order

  • <copy|mirror> will create local repo as either a copy or a mirror of the remote repo (default = copy)
  • <target organisation> within your local GITEA, otherwise local user - must exist already
  • <debug> run in debug mode

git-migrate-org.sh

create mirrors of all repos for an organisation in a local GITEA instance

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

  • <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
  • <target organisation> within your local GITEA, otherwise local user - must exist already
  • <debug> run in debug mode
  • <noisy> show each repo being migrated

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

  • <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
  • <debug> run in debug mode

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

parse-list.sh <param file> <script> [<noisy> <additional> <additional> <additional>]
  • <param file> name of file containing parameters
  • <script> script to run (e.g. rename-e-smith-pkg.sh)

optional params can appear in any order

  • <noisy> show line being executed
  • <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:

  • <repository> repository (package) to be editted (e.g. smeserver-yum)
  • <organisation> can be any organisation or user on the remote or local GITEA instance

optional:

  • <local> will migrate into your local GITEA (in config), otherwise remote GITEA

Does:

Rename spec file
Set current date in change log
Set Wiki and Issues links external (SME Wiki and Bugzilla)