This script unzips packages and convert them to repositories or if they exist updates them.
Go to file
2020-11-12 02:11:08 +02:00
.gitignore add to repository 2020-11-11 12:16:41 +02:00
LICENSE add to repository 2020-11-11 12:16:41 +02:00
README.md add to repository 2020-11-11 12:16:41 +02:00
run.sh Removes the removal of zip if new repo is found, since this could indicate a name change, and best run the update again with the zip in that case. 2020-11-12 02:11:08 +02:00

Convert Zip Packages to Repositories

The idea of this script is to update a bunch of respositories at once with simple zip packages.

Install

Clone this repository

$ git clone https://git.vdm.dev/octoleo/zip-to-repo.git

Then setup your own environment file .env with the following values:

ORG="octoleo"
ROOTDIR="/home/user/path/to/zip/files/"
REMOTESYSTEM="git.vdm.dev"
PUSH_CREATE=true
  • ORG: git.vdm.dev/[ORG] in the repository path
  • ROOTDIR: the full path to where you have placed all the zipped files
  • REMOTESYSTEM: the base URI of your gitea system
  • PUSH_CREATE: switch to push-create repositories that don't already exist

Run the script

Make the script executable

$ sudo chmod +x run.sh

Execute the script

$ ./run.sh

Free Software License

@copyright  Copyright (C) 2021 Llewellyn van der Merwe. All rights reserved.
@license    GNU General Public License version 2 or later; see LICENSE.txt