]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* lib/install-sh (dstdir): Don't use semicolons inside { } in
authorAlexandre Duret-Lutz <adl@gnu.org>
Thu, 12 Jan 2006 21:11:14 +0000 (21:11 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Thu, 12 Jan 2006 21:11:14 +0000 (21:11 +0000)
sed scripts, as Posix says it's not portable.
* lib/missing (file): Likewise.
* lib/am/distdir.am (distcheck): Likewise.
* tests/comment7.test, tests/comment9.test, tests/confh.test: Likewise
* tests/distcom2.test, tests/distcom3.test: Likewise.
* tests/distcom4.test, tests/distcom5.test: Likewise.
* tests/distcom6.test, tests/include.test, tests/pluseq8.test: Likewise.

15 files changed:
ChangeLog
Makefile.in
lib/am/distdir.am
lib/install-sh
lib/missing
tests/comment7.test
tests/comment9.test
tests/confh.test
tests/distcom2.test
tests/distcom3.test
tests/distcom4.test
tests/distcom5.test
tests/distcom6.test
tests/include.test
tests/pluseq8.test

index 42f253799997badece4ec7723ba7ed8fb4eb03fe..d2d9c8e4f7b007b303bd067d73f3bb7046faa4ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2006-01-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/install-sh (dstdir): Don't use semicolons inside { } in
+       sed scripts, as Posix says it's not portable.
+       * lib/missing (file): Likewise.
+       * lib/am/distdir.am (distcheck): Likewise.
+       * tests/comment7.test, tests/comment9.test, tests/confh.test: Likewise
+       * tests/distcom2.test, tests/distcom3.test: Likewise.
+       * tests/distcom4.test, tests/distcom5.test: Likewise.
+       * tests/distcom6.test, tests/include.test, tests/pluseq8.test: Likewise.
+
 2006-01-12  Alexandre Duret-Lutz  <adl@gnu.org>
 
        * ChangeLog: Move 2004's entries to ...
index e58f780c867410e37a239b053d0ca3e729bb059e..b42ecbe227fefac7bac1d44e20c4dfe77082c9c5 100644 (file)
@@ -2,7 +2,7 @@
 # @configure_input@
 
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005  Free Software Foundation, Inc.
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -172,6 +172,7 @@ EXTRA_DIST = \
   ChangeLog.01 \
   ChangeLog.02 \
   ChangeLog.03 \
+  ChangeLog.04 \
   $(AUTOMAKESOURCES)
 
 do_subst = sed \
@@ -509,7 +510,7 @@ distcheck: dist
        $(am__remove_distdir)
        @(echo "$(distdir) archives ready for distribution: "; \
          list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
-         sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
+         sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
 distuninstallcheck:
        @cd $(distuninstallcheck_dir) \
        && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
index 32e8c4d1a3d96e9fd3da576a44862484b57aebae..a7b96d51dbb0f82342959913dd239a6d15687708 100644 (file)
@@ -1,5 +1,6 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright (C) 2001, 2002, 2003, 2004, 2005  Free Software Foundation, Inc.
+## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006  Free Software
+## Foundation, Inc.
 
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -381,7 +382,7 @@ distcheck: dist
        $(am__remove_distdir)
        @(echo "$(distdir) archives ready for distribution: "; \
          list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
-         sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
+         sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
 
 ## Define distuninstallcheck_listfiles and distuninstallcheck separately
 ## from distcheck, so that they can be overridden by the user.
index 0ae12c0ebea952ac0fdd1ab0ce980ecf96cf2ed7..fd2e75a02aeaafbd0537c669844c4f69d0364363 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # install - install a program, script, or datafile
 
-scriptversion=2005-11-07.23
+scriptversion=2006-01-12.21
 
 # This originates from X11R5 (mit/util/scripts/install.sh), which was
 # later released in X11R6 (xc/config/util/install.sh) with the
@@ -233,11 +233,23 @@ do
             X"$dst" : 'X\(/\)' \| \
             .       : '\(.\)' 2>/dev/null ||
        echo X"$dst" |
-           sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
-                 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
-                 /^X\(\/\/\)$/{ s//\1/; q; }
-                 /^X\(\/\).*/{ s//\1/; q; }
-                 s/.*/./; q'
+           sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+                  s//\1/
+                  q
+                }
+                /^X\(\/\/\)[^/].*/{
+                  s//\1/
+                  q
+                }
+                /^X\(\/\/\)$/{
+                  s//\1/
+                  q
+                }
+                /^X\(\/\).*/{
+                  s//\1/
+                  q
+                }
+                s/.*/./; q'
       `
 
       test -d "$dstdir"
index 894e786e16c1d0d94dfc08d6b475270fe1418d6a..c82c8b56d5dfffc086f8d793654df2619ffa1bef 100755 (executable)
@@ -1,9 +1,9 @@
 #! /bin/sh
 # Common stub for a few missing GNU programs while installing.
 
-scriptversion=2005-06-08.21
+scriptversion=2006-01-12.21
 
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
 #   Free Software Foundation, Inc.
 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
 
@@ -293,7 +293,12 @@ WARNING: \`$1' is $msg.  You should only need it if
     if test -z "$file"; then
       # ... or it is the one specified with @setfilename ...
       infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
-      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
+      file=`sed -n '
+       /^@setfilename/{
+         s/.* \([^ ]*\) *$/\1/
+         p
+         q
+       }' $infile`
       # ... or it is derived from the source name (dir/f.texi becomes f.info)
       test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
     fi
index 0254b8811043a4e9ddcb2dc6beafbb7e8d66d664..aa98b3c0644bf1153219e954e904ebd8a01153e3 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2002  Free Software Foundation, Inc.
+# Copyright (C) 2002, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -47,7 +47,13 @@ test `grep '@COND_TRUE@VAR' Makefile.in | wc -l` = 1
 test `grep '@COND_FALSE@VAR' Makefile.in | wc -l` = 1
 
 # Make sure the right definition follows each comment.
-sed -n '/^#.*VAR.*COND_TRUE/ { n; p; }' Makefile.in |
+sed -n '/^#.*VAR.*COND_TRUE/ {
+         n
+         p
+       }' Makefile.in |
   grep '@COND_TRUE@VAR = foo'
-sed -n '/^#.*VAR.*COND_FALSE/ { n; p; }' Makefile.in |
+sed -n '/^#.*VAR.*COND_FALSE/ {
+         n
+         p
+       }' Makefile.in |
   grep '@COND_FALSE@VAR = bar'
index 8b4eb7eed06569e002380105e7f9fa98e0f2e3f2..6abf77df1b1211557af993b64d65ef62c7b6345b 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2005  Free Software Foundation, Inc.
+# Copyright (C) 2005, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -43,7 +43,10 @@ sed -n -e '/^TESTS =.*\\$/ {
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^TESTS =/ p' Makefile.in > tests
index 89bb67c4de7aa3e8902d60f32ca241c09738b3ef..384c1e5735a91fea809364a9ebabf8f2fe4802ea 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1999, 2000, 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2001, 2002, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -44,7 +44,10 @@ $AUTOMAKE || exit 1
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^DIST_COMMON =/ p' Makefile.in | grep acconfig.h) || exit 1
index 72c322d2c5cd84929c3c4cad5c805a9ef9ba2c66..87843288a816600f5ac0de094c8a75dd1b0e77e5 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2001, 2002, 2004  Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -55,7 +55,10 @@ sed -n -e '/^DIST_COMMON =.*\\$/ {
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^DIST_COMMON =/ p' Makefile.in | grep compile || exit 1
@@ -64,7 +67,10 @@ sed -n -e '/^DIST_COMMON =.*\\$/ {
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^DIST_COMMON =/ p' Makefile.in | grep depcomp || exit 1
index f5f1888468d964e36dd9ddf21d6f4f9f94a16274..f9a8f37f88e6b5c5b75478343fc851ee90e2c0cd 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2001, 2002, 2003, 2004  Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003, 2004, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -46,7 +46,10 @@ sed -n -e '/^DIST_COMMON =.*\\$/ {
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^DIST_COMMON =/ p' Makefile.in | grep README
index 04016c7639347dd90eb8a053955c3c3cced44b7e..19e94643fc7ea632f15c0c391f666ee7a0e81c22 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2003  Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -64,7 +64,10 @@ sed -n -e '/^DIST_COMMON =.*\\$/ {
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^DIST_COMMON =/ p' Makefile.in > dc.txt
index 68077b2a40bb22aa0a9ca46d2920f7f736fadfaa..98c60b22b80ded31efcfcbf11c30f76b70ece5a9 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2003  Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -65,7 +65,10 @@ sed -n -e '/^DIST_COMMON =.*\\$/ {
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^DIST_COMMON =/ p' Makefile.in > top.txt
@@ -74,7 +77,10 @@ sed -n -e '/^DIST_COMMON =.*\\$/ {
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^DIST_COMMON =/ p' tests/Makefile.in > inner.txt
index a7bc1b50e08d84cbf16488bb51b9d4898a9bda59..1b7f95daf8e558b83dd59c52afd9ce9c223bfa7a 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2003, 2004  Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -60,7 +60,10 @@ sed -n -e '/^DIST_COMMON =.*\\$/ {
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^DIST_COMMON =/ p' Makefile.in | grep compile
@@ -69,7 +72,10 @@ sed -n -e '/^DIST_COMMON =.*\\$/ {
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^DIST_COMMON =/ p' Makefile.in | grep depcomp
index 773a2c392adc539051a454e41ce7fab18a711e44..f1e41ebf8a255fedc0172c37edc835627bad765c 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1999, 2001, 2002, 2005  Free Software Foundation, Inc.
+# Copyright (C) 1999, 2001, 2002, 2005, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -42,7 +42,10 @@ test $len -eq 1 || exit 1
    :loop
    p
    n
-   /\\$/ b loop
+   t clear
+   :clear
+   s/\\$/\\/
+   t loop
    p
    n
    }' -e '/^DIST_COMMON =/ p' Makefile.in | grep foo)
index 8a3bc55ede1d787f7ef813edd7304783b20d434a..ffed4bbf320fa63488120b70c7d714e35b423bc4 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1999, 2001, 2002, 2004  Free Software Foundation, Inc.
+# Copyright (C) 1999, 2001, 2002, 2004, 2006  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -36,7 +36,10 @@ sed -n -e '/^VAR =/ {
    :loop
     p
     n
-    /\\$/ b loop
+    t clear
+    :clear
+    s/\\$/\\/
+    t loop
     p
     n
    }' Makefile.in | grep three