cwautomacros as submodule
Find a file
2025-11-24 03:02:44 +01:00
aclocal egrep was deprecated in favor of grep -E. 2022-09-19 13:46:44 +02:00
cmake Automatic commit of changes by autogen.sh. 2025-11-24 01:05:05 +01:00
hooks Add error reporting when something goes wrong. 2020-01-12 16:10:20 +01:00
scripts Change of MAINTAINER_HASH 2025-11-24 01:44:11 +01:00
templates Get rid of .build-instructions again. Print instructions using the env. vars. 2025-11-24 03:02:44 +01:00
.gitignore Ignore a possible env.source file. 2017-02-21 17:51:44 +01:00
configure_ac_bottom.m4 Automatic commit of changes by autogen.sh. 2017-02-01 17:29:13 +01:00
configure_ac_top.m4 Allow CW_VERSION_REVISION to be undefined. 2024-11-28 15:00:30 +01:00
m4 Add missing files. 2017-01-29 00:45:40 +01:00
README.md Update README.md 2023-10-30 18:19:30 +01:00
README_usage.md Automatic commit of changes by autogen.sh. 2024-12-06 20:24:11 +01:00
root_makefile_bottom.am Automatic commit of changes by autogen.sh. 2019-12-07 21:32:52 +01:00
root_makefile_top.am That is needed too! 2021-03-28 16:12:47 +02:00
submodules.m4 Fix AC_CONFIG_MACRO_DIR 2017-01-28 00:54:00 +01:00
sugar.m4 Fix AC_CONFIG_MACRO_DIR 2017-01-28 00:54:00 +01:00

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.

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.git

This 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.sh

and 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.sh

And 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. A more complex example can be found in the repository ai-xml-testsuite which uses this as configure.m4 file of the submodule 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