Last change
on this file since 4326 was
4326,
checked in by Peter, 7 months ago
|
We had two macros with very similar behaviour: YAT_AC_APPEND in
'yat_svn_release' and private macro _YAT_AC_APPEND_TO_FILE. Replace
with new macro YAT_AC_APPEND_TO_FILE with tested and documented
behaviour. Similarly a macro YAT_AC_WRITE_TO_FILE.
Introduce a new macro YAT_AM_LOCAL, which is recommended to use when
using any of the macros generating automake input.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | # $Id: yat_prog_move_if_change_test.sh 4326 2023-03-12 00:37:24Z peter $ |
---|
3 | # |
---|
4 | # Copyright (C) 2011, 2012, 2013 Peter Johansson |
---|
5 | # |
---|
6 | # This file is part of the yat library, http://dev.thep.lu.se/yat |
---|
7 | # |
---|
8 | # The yat library is free software; you can redistribute it |
---|
9 | # and/or modify it under the terms of the GNU General Public License as |
---|
10 | # published by the Free Software Foundation; either version 3 of the |
---|
11 | # License, or (at your option) any later version. |
---|
12 | # |
---|
13 | # The yat library is distributed in the hope that it will be useful, |
---|
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | # General Public License for more details. |
---|
17 | # |
---|
18 | # You should have received a copy of the GNU General Public License |
---|
19 | # along with yat. If not, see <http://www.gnu.org/licenses/>. |
---|
20 | |
---|
21 | |
---|
22 | # test macro YAT_PROG_MOVE_IF_CHANGE |
---|
23 | |
---|
24 | required="autoconf automake" |
---|
25 | |
---|
26 | set -e |
---|
27 | |
---|
28 | . test/init.sh || exit 99 |
---|
29 | |
---|
30 | cat >> configure.ac <<EOF |
---|
31 | YAT_PROG_MOVE_IF_CHANGE |
---|
32 | AC_CONFIG_FILES([Makefile]) |
---|
33 | AC_OUTPUT |
---|
34 | EOF |
---|
35 | |
---|
36 | cat > Makefile.am <<EOF |
---|
37 | ACLOCAL_AMFLAGS = -I m4 |
---|
38 | EOF |
---|
39 | rm -f move-if-change |
---|
40 | bootstrap |
---|
41 | test -r move-if-change || exit_fail "move-if-change not generated by autoconf" |
---|
42 | cat move-if-change |
---|
43 | grep MOVE_IF_CHANGE Makefile.in || exit_fail |
---|
44 | ./configure $configure_opts |
---|
45 | grep "MOVE_IF_CHANGE.*move-if-change" Makefile || exit_fail |
---|
46 | exit_success; |
---|
Note: See
TracBrowser
for help on using the repository browser.