From f28c8f337abff3af4da44e992d5e4cc89af55b54 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 1 Jun 2023 06:38:29 +0200 Subject: [PATCH] add rename-e-smith-pkg.sh comments + tidy --- README.md | 72 +++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 51 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index d30c617..d49d570 100644 --- a/README.md +++ b/README.md @@ -4,30 +4,60 @@ 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\ +## 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 \ \ \[\\]\ -\ can ONLY be smeserver or smecontribs\ -\ will migrate into your local GITEA (in config), otherwise remote GITEA +## git-cvs2git.sh +copy current cvs version of a package across to git in new structure -* git-get-and-build-repo.sh\ -bring down current git repository and run mockbuild\ -git-get-and-build.sh \ \ \[\\]\ -\ will build from local GITEA (in config), otherwise from remote GITEA + git-cvs2git.sh [] -* git-migrate-repo.sh\ -create mirror or copy of src.koozali.org repository in a local GITEA instance\ -git-migrate-repo.sh \ \ \[\ \\]\ -\ will create local repo as either a copy or a mirror of the remote repo (default = copy)\ -\ within your local GITEA, otherwise local user - must exist already +* \ repository (package) to be migrated (e.g. smeserver-yum)\ +* \ can ONLY be smeserver or smecontribs\ +* \ will migrate into your local GITEA (in config), otherwise remote GITEA -* git-migrate-org.sh\ -create mirrors of all repos for an organisation in a local GITEA instance\ -git-migrate-org.sh \ \[\ \ \\]\ -\ will create local repos as either a copy or a mirror of the remote repos (default = copy)\ -\ will just list the repos to be migrated, rather than doing it\ -\ within your local GITEA, otherwise local user - must exist already \ No newline at end of file +## git-get-and-build-repo.sh +bring down current git repository and run mockbuild + + git-get-and-build.sh [] + +* \ repository (package) to be built (e.g. smeserver-yum)\ +* \ can ONLY be smeserver or smecontribs\ +* \ will build from local GITEA (in config), otherwise from remote GITEA + +## git-migrate-repo.sh +create mirror or copy of src.koozali.org repository in a local GITEA instance + + git-migrate-repo.sh [ ] + +* \ repository (package) to be copied (e.g. smeserver-yum)\ +* \ can be any repository on the remote GITEA\ +* \ will create local repo as either a copy or a mirror of the remote repo (default = copy)\ +* \ within your local GITEA, otherwise local user - must exist already + +## git-migrate-org.sh +create mirrors of all repos for an organisation in a local GITEA instance + + git-migrate-org.sh [ ] + +* \ can be any repository on the remote GITEA\ +* \ will create local repos as either a copy or a mirror of the remote repos (default = copy)\ +* \ will just list the repos to be migrated, rather than doing it\ +* \ within your local GITEA, otherwise local user - must exist already + +## rename-e-smith-pkg.sh +Rename an e-smith package as smeserver and change relevant files + + rename-emith-pkg.sh [ ] + +* \ Module name to be renamed e.g. e-smith-dnscache + +optional parameters, can appear in any order + +* \ (any gitea organisation smeserver, smecontribs or user - defaults to smeserver)\ +* \ will use parameters set for local repository else it will use remote\ +* \ will automagically delete an existing repo, otherwise it will prompt\ +* \ run in debug mode + +This works whether the repo and local files exist of not (it deletes them if necessary) \ No newline at end of file