- The design of the program
- Coding style
- Testing. Writing test cases
- Generating pacapt script
- Branches
- Closed branches
- Don't use tab or smart tab;
- Use
2-space
instead of a tab; - Contribute to library file under
./lib/
directory; - We try to follow the convention from: https://github.com/icy/bash-coding-style.
See also tests/README.md
and https://github.com/icy/pacapt/actions.
- Use
make shellcheck POSIX
if you have shellcheck and enoughPerl
packages (JSON
,URI::Escape
) on your system; - Use
PACAPT_DEBUG=foo
wherefoo
is a package manager (dpkg
,pacman
,zypper
, ...) to print whatpacapt
will do. UsePACAPT_DEBUG=auto
for auto-detection; - You can use
docker
for testing, by mounting thepacapt.dev
script to the container. See alsodocker.i
section inMakefile
. Example:
$ make pacapt.dev
$ docker run --rm -ti \
-v $PWD/pacapt.dev:/usr/bin/pacman \
debian:stable /bin/bash
# Your container's shell is available from this point
Alternatively you can use the Makefile
$ make docker.i DISTRO=debian:stable
# # Your Bourne shell is available now
# # Type `bash` to start more convenient interactive shell.
- For your development, use
make pacapt.dev
; - Please do not use
make pacapt
to updatepacapt
, and/or modify it manually;
ng
: The current development branch. Some pull requests are merged on to this branch, but the work may not be ready for production.your feature branch
: For new feature or bug fix, please work on your own branch and create pull request. Do not put different ideas on a same branch because that makes future tracking harder.
master
: The old stable code of thepacapt
. This branch is closed on May 4th, 2014.