Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pacstall/repo-maintain

mr helps repo maintainers maintain custom repositories
https://github.com/pacstall/repo-maintain

bash docker hacktoberfest pacstall pacstall-programs

Last synced: about 10 hours ago
JSON representation

mr helps repo maintainers maintain custom repositories

Awesome Lists containing this project

README

        

# repo-maintain

`mr` helps repo owners to easily maintain their repos

## Install

```console
$ git clone https://github.com/pacstall/repo-maintain/
$ cd repo-maintain
$ ./install.sh
```

## Commands
All these commands need to be run in the directory of your repo

`mr -I` creates a repo in your working directory. It will fail if the directory is not empty.

`mr -A` moves a pacscript to your working directory if it's a repo.

`mr -U` updates packageslist file in your working directory if it's a repo. This file is used for searching and installing with pacstall.

`mr -T` will test a pacscript in a docker container. Can be run in any directory

`mr -B` will take a deb ending URL and create a pacscript for you

## Examples

First we create a repo.
```console
$ mkdir my-repo && cd my-repo
$ mr -I
```

After that, we test if the script works. This is done with a docker container of ubuntu.
```console
$ mr -T ~/test.pacscript # tests pacscript inside a docker container
```

After we see that the script ran successfully, we can add it to the repo.

```console
$ cd my-repo
$ mr -A ~/test.pacscript # adds test.pacscript to the repo
$ mr -U # updates packagelist
```

Finally, we can add a remote to the git repo and push the changes.

```console
$ git remote add origin https://github.com/my-username/my-repo/
$ git push
```