Skip to content

foretspaisibles/anvil

Repository files navigation

Anvil, a software package assistant

Anvil is a software package assistant, which can be used to initialise package repositories and add files to them based on templates. It also defines new git commands and git hooks.

It is written using the Bourne Shell and M4, and requires GNU Autoconf, BSD Make and BSD Owl to build and install.

Guide to documentation

The documentation is held in the doc directory of this repository. Here are a few suggested starting points:

Example of file creation

We produce a new shell file using the following command:

% anvil_template -p shell anvil_tool.sh 'Another tool in the Anvil suite'
### anvil_tool.sh -- Another tool in the Anvil suite

# Anvil (https://github.com/michipili/anvil)
# This file is part of Anvil
#
# Copyright © 2015 Michael Grünewald
#
# This file must be used under the terms of the CeCILL-B.
# This source file is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt

### End of file `anvil_tool.sh'

Example of hooks

The pre-commit can be used to enforce several policies, related to whitespace or SCM words.