add to repository

This commit is contained in:
2020-11-11 12:16:41 +02:00
commit af97104134
4 changed files with 554 additions and 0 deletions

42
README.md Normal file
View File

@@ -0,0 +1,42 @@
## 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
```shell
$ git clone https://git.vdm.dev/octoleo/zip-to-repo.git
```
Then setup your own **environment** file `.env` with the following values:
```txt
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
```shell
$ sudo chmod +x run.sh
```
Execute the script
```shell
$ ./run.sh
```
### Free Software License
```txt
@copyright Copyright (C) 2021 Llewellyn van der Merwe. All rights reserved.
@license GNU General Public License version 2 or later; see LICENSE.txt
```