emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master ade6a02: Yet another fix for autogen.sh


From: Eli Zaretskii
Subject: [Emacs-diffs] master ade6a02: Yet another fix for autogen.sh
Date: Thu, 5 Jan 2017 19:37:36 +0000 (UTC)

branch: master
commit ade6a024c80dbb0b66d9d2e10ccd350618036e78
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Yet another fix for autogen.sh
    
    * autogen.sh (gnulib.mk): Make the Sed script more portable.
    
    * nt/Makefile.in (${srcdir}/gnulib.mk): Adapt the Sed command to
    the changes in autogen.sh.
---
 autogen.sh     |    6 ++----
 nt/Makefile.in |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 47e518c..e5b3ead 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -224,10 +224,8 @@ Please report any problems with this script to 
address@hidden .'
   ## Create nt/gnulib.mk if it doesn't exist, as autoreconf will need it.
   if test ! -f nt/gnulib.mk; then
       echo 'Inferring nt/gnulib.mk from lib/gnulib.mk ...'
-      echo '/^[^#]/s|^.*$|/^## begin  *gnulib module &/,/^## end  *gnulib 
module &/c\\\' > metascript.$$
-      echo '## gnulib module & removed|' >> metascript.$$
-      script=`sed -f metascript.$$ nt/gnulib-modules-to-delete.cfg` || exit
-      rm -f metascript.$$
+      metascript='/^[^#]/s|^.*$|/^## begin  *gnulib module &/,/^## end  
*gnulib module &/d|'
+      script=`sed "$metascript" nt/gnulib-modules-to-delete.cfg` || exit
       sed "$script" lib/gnulib.mk > nt/gnulib.mk || exit
   fi
 
diff --git a/nt/Makefile.in b/nt/Makefile.in
index 89f4460..34c552c 100644
--- a/nt/Makefile.in
+++ b/nt/Makefile.in
@@ -262,6 +262,6 @@ emacs.res ../src/emacs.res: emacs.rc 
${srcdir}/icons/emacs.ico \
        $(AM_V_RC)${WINDRES} -I ${srcdir} -O coff -o $@ $<
 
 ${srcdir}/gnulib.mk: ${srcdir}/gnulib-modules-to-delete.cfg 
${srcdir}/../lib/gnulib.mk
-       $(AM_V_GEN)sed '/^[^#]/s|^.*$$|/^## begin  *gnulib module &/,/^## end  
*gnulib module &/c ## gnulib module & removed|' < $< | \
+       $(AM_V_GEN)sed '/^[^#]/s|^.*$$|/^## begin  *gnulib module &/,/^## end  
*gnulib module &/d|' < $< | \
          sed -f- ${srcdir}/../lib/gnulib.mk > address@hidden && \
          ${srcdir}/../build-aux/move-if-change address@hidden $@



reply via email to

[Prev in Thread] Current Thread [Next in Thread]