https://github.com/carlowood/cwm4
cwautomacros as submodule
https://github.com/carlowood/cwm4
autogen autotools build-system cmake cwm4 git
Last synced: 6 months ago
JSON representation
cwautomacros as submodule
- Host: GitHub
- URL: https://github.com/carlowood/cwm4
- Owner: CarloWood
- Created: 2016-12-18T22:30:16.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-13T15:56:23.000Z (7 months ago)
- Last Synced: 2025-04-14T03:09:10.915Z (6 months ago)
- Topics: autogen, autotools, build-system, cmake, cwm4, git
- Language: M4
- Size: 343 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cwm4 git submodule
This repository is a git submodule containing
autoconf macros and helper scripts to support
building a project that uses git submodules and
autotools or cmake.## Checking out a project that uses the cwm4 submodule.
Please read [README_usage](https://github.com/CarloWood/cwm4/blob/master/README_usage.md).
## Adding the cwm4 submodule to a project.
To add this submodule to a project, execute the following
in the root of the project:
git submodule add https://github.com/CarloWood/cwm4.gitThis should clone cwm4 into the subdirectory cwm4, or
if you already cloned it there, it should add it.Next run:
cp cwm4/templates/autogen.sh .
./autogen.shand follow the instructions (if any). [autotools only:] If fixing of configure.ac
was necessary, run ./autogen.sh again until all issues are fixed.Finally add autogen.sh to your project:
git add autogen.shAnd commit your changes.
To add support for another submodule, add a file called 'configure.m4'
to the root of that submodule -- a template for that file can be
found in [cwm4/templates/configure.m4](https://github.com/CarloWood/cwm4/blob/master/templates/configure.m4).
A more complex example can be found in the repository
[ai-xml-testsuite](https://github.com/CarloWood/ai-xml-testsuite) which
uses [this](https://github.com/CarloWood/ai-xml/blob/master/configure.m4) as configure.m4
file of the submodule [ai-xml](https://github.com/CarloWood/ai-xml).## Cloning this project.
If you make your own clone of cwm4, make sure to set the
environment variables GIT_COMMITTER_EMAIL and
GIT_COMMITTER_NAME (and likely you also want
to set GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME)
and edit cwm4/templates/autogen.sh to use the
md5 hash of your GIT_COMMITTER_EMAIL.
echo "$GIT_COMMITTER_EMAIL" | md5sum