# 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 It's a good idea to have the scripts somewhere in your path (some do call others). You can put them in ~/bin (you may need to create this if it doesn't exist) ## 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 (package) to be migrated (e.g. smeserver-yum) * \ can ONLY be smeserver or smecontribs optional parameters, can appear in any order * \ will migrate into your local GITEA (in config), otherwise remote GITEA * \ run in debug mode ## git-get-and-build-repo.sh bring down current git repository and run mockbuild git-get-and-build.sh [branch= ] * \ will bring back a specific branch, otherwise Master * \ repository (package) to be built (e.g. smeserver-yum) * \ can be any organisation or user on the remote GITEA instance optional parameters, can appear in any order * \ will build from local GITEA (in config), otherwise from remote GITEA * \ 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 (package) to be copied (e.g. smeserver-yum) * \ can be any organisation or user on the remote GITEA instance optional parameters, can appear in any order * \ within your local GITEA, otherwise local user - must exist already * \ will create local repo as either a copy or a mirror of the remote repo (default = copy) * \ use local GITEA as source (i.e. copy between organisations on local GITEA) * \ run in debug mode ## git-transfer-repo.sh Transfer a repo to a different user (or organisation) git-transfer-repo.sh [ ] * \ repository name to be transferred (e.g. smeserver-clamav) * \ to be transferred from (any valid organisation or user) * \ to be transferred to (any valid organisation or user - you need owner privileges) optional parameters, can appear in any order \ will use parameters set for local repository, else it will use remote \ will automagically delete an existing target repo, otherwise it will prompt \ run in debug mode \ suppress success message ## git-retag.sh Create a new tag based on %version-%release in spec file (without trailing el7.sme) and optionally remove old tags git-retag.sh [ ] * \ repository to be retagged * \ organisation\owner that the repository belongs to optional parameters, can appear in any order * \ will remove all existing tags * \ will use parameters set for local repository, else it will use remote * \ run with debug output * \ will will print a line showing how it was called ## parse-list.sh Parse a list of parameters and execute script with those parameters parse-list.sh