Skip to content

Commit

Permalink
Commit 39
Browse files Browse the repository at this point in the history
- New library file `not-parallel-configure.m4` has been created, containing the
  new macros `NC_THREAD_NEW()` and `NC_JOIN_THREADS()`
- New macros `NC_AUTO_REQ_PROGS()` and `NM_AUTO_QUERY_PROGS()` have been
  created in `not-autotools.m4`
- Documentation
- New examples have been created (`examples/not-parallel-configure`)
  • Loading branch information
madmurphy committed Feb 2, 2022
1 parent b92254b commit 8cb7e05
Show file tree
Hide file tree
Showing 57 changed files with 2,215 additions and 1,190 deletions.
17 changes: 15 additions & 2 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ Change Log
==========


2.3.0
-----

Changes:

* New library file `not-parallel-configure.m4` has been created, containing the
new macros `NC_THREAD_NEW()` and `NC_JOIN_THREADS()`
* New macros `NC_AUTO_REQ_PROGS()` and `NM_AUTO_QUERY_PROGS()` have been
created in `not-autotools.m4`
* Documentation
* New examples have been created (`examples/not-parallel-configure`)


2.2.2
-----

Expand All @@ -19,7 +32,7 @@ Changes:

* Code review (macro `NC_GLOBAL_LITERALS()` in `not-autotools.m4`)
* Documentation
* New examples have been created (`examples/NA_AMEND`)
* New examples have been created (`examples/na_amend`)


2.2.0
Expand Down Expand Up @@ -357,7 +370,7 @@ Changes:

Changes:

* New library file `not-fancy-texts.m4` has been created containing the
* New library file `not-fancy-texts.m4` has been created, containing the
new macros `n4_sp()` and `n4_text_center()`
* New macros `NS_FOR()`, `NS_WHILE()`, `NS_MOVEVAR()` and `NS_REPLACEVAR()`
have been created in `not-autoshell.m4`
Expand Down
14 changes: 0 additions & 14 deletions examples/NA_AMEND/.editorconfig

This file was deleted.

11 changes: 11 additions & 0 deletions examples/na_amend/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[package.json]
charset = utf-8
indent_style = tab
indent_size = 2

[{**.sh,configure.ac,**/Makefile.am,src/foobar.c,src/foobar.h}]
charset = utf-8
indent_style = tab
indent_size = 4
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 2 additions & 5 deletions examples/not-autoversion/extended-example/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
root = true

[package.json]
charset = utf-8
indent_style = tab
indent_size = 2

[{**.sh,configure.ac,**/Makefile.am}]
indent_style = tab
indent_size = 4

[src/nautilus-__REPL_IDCASE_PACKAGENAME__.c]
[{**.sh,configure.ac,**/Makefile.am,src/foobar.c,src/foobar.h}]
charset = utf-8
indent_style = tab
indent_size = 4
84 changes: 84 additions & 0 deletions examples/not-autoversion/extended-example/autostuff/m4/index.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
dnl -*- Mode: M4; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*-

dnl **************************************************************************
dnl _ _ _ ___ _ _ _
dnl | \ | | | | / _ \ | | | | | |
dnl | \| | ___ | |_ / /_\ \_ _| |_ ___ | |_ ___ ___ | |___
dnl | . ` |/ _ \| __| | _ | | | | __/ _ \| __/ _ \ / _ \| / __|
dnl | |\ | (_) | |_ | | | | |_| | || (_) | || (_) | (_) | \__ \
dnl \_| \_/\___/ \__| \_| |_/\__,_|\__\___/ \__\___/ \___/|_|___/
dnl
dnl A collection of useful m4-ish macros for GNU Autotools
dnl
dnl -- Released under GNU GPL3 --
dnl
dnl https://github.com/madmurphy/not-autotools
dnl **************************************************************************


dnl **************************************************************************
dnl NOTE: This is only a selection of macros from the **Not Autotools**
dnl project without documentation. For the entire collection and the
dnl documentation please refer to the project's website.
dnl **************************************************************************



dnl n4_has(list, check1, if-found1[, ... checkN, if-foundN[, if-not-found]])
dnl **************************************************************************
dnl
dnl Check if a list contains one or more elements
dnl
dnl From: not-autotools/m4/not-m4sugar.m4
dnl Version: 1.0.0
dnl
m4_define([n4_has],
[m4_if([$#], [0], [], [$#], [1], [], [$#], [2], [],
[m4_if(m4_argn(1, $1), [$2], [$3], [$#], [3], [], [$#], [4],
[m4_if(m4_count($1), [1],
[$4],
[n4_has(m4_dquote(m4_shift($1)), m4_shift($@))])],
[m4_if(m4_count($1), [1],
[n4_has([$1], m4_shift3($@))],
[n4_has(m4_dquote(m4_shift($1)), [$2], [$3],
[n4_has([$1], m4_shift3($@))])])])])])


dnl n4_case_in(text, list1, if-found1[, ... listN, if-foundN], [if-not-found])
dnl **************************************************************************
dnl
dnl Searches for the first occurrence of `text` in each comma-separated list
dnl `listN`
dnl
dnl From: not-autotools/m4/not-m4sugar.m4
dnl Version: 1.0.1
dnl
m4_define([n4_case_in],
[m4_if([$#], [0], [], [$#], [1], [], [$#], [2], [],
[m4_if(m4_argn([1], $2), [$1],
[$3],
[m4_if(m4_count($2), [1],
[m4_if([$#], [3], [], [$#], [4],
[$4],
[n4_case_in([$1], m4_shift3($@))])],
[n4_case_in([$1],
m4_dquote(m4_shift($2)),
m4_shift2($@))])])])])


m4_include([autostuff/m4/not-autoversion.m4])
m4_include([autostuff/m4/not-extended-config.m4])



dnl **************************************************************************
dnl NOTE: The `NR_` prefix (which stands for "Not autoReconf") and the `NC_`
dnl prefix (which stands for "Not autoConf") are used with the purpose
dnl of avoiding collisions with the default Autotools prefixes `AC_`,
dnl `AM_`, `AS_`, `AX_`, `LT_`.
dnl **************************************************************************



dnl EOF

Loading

0 comments on commit 8cb7e05

Please sign in to comment.