]> granicus.if.org Git - xz/commitdiff
Use sed instead of $(SED) so that we don't need to
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 6 Jul 2009 07:36:04 +0000 (10:36 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 6 Jul 2009 07:36:04 +0000 (10:36 +0300)
use AC_PROG_SED. We don't do anything fancy with sed,
so this should work OK. libtool 2.2 sets SED but 1.5
doesn't, so $(SED) happened to work when using libtool 2.2.

src/liblzma/Makefile.am
src/scripts/Makefile.am
src/xz/Makefile.am
src/xzdec/Makefile.am

index 5490ba02d2e17490189f285a21946de329c17597..6d5753b14fc9edf4e7d23cefe584b5a8bc4d1741 100644 (file)
@@ -70,7 +70,7 @@ endif
 # Remove ordinals from the generated .def file. People must link by name,
 # not by ordinal, because no one is going to track the ordinal numbers.
 liblzma.def: liblzma.la liblzma.def.in
-       $(SED) 's/ \+@ *[0-9]\+//' liblzma.def.in > liblzma.def
+       sed 's/ \+@ *[0-9]\+//' liblzma.def.in > liblzma.def
 
 # Creating liblzma.def.in is a side effect of linking the library.
 liblzma.def.in: liblzma.la
index 8580ee5bb5743460dd791b75273fe452a6c7ee6f..86f273884f67ba3723fe7190af844eddd5a9d82c 100644 (file)
@@ -10,42 +10,42 @@ dist_man_MANS = xzdiff.1 xzgrep.1 xzmore.1 xzless.1
 
 install-exec-hook:
        cd $(DESTDIR)$(bindir) && \
-       target=`echo xzdiff | $(SED) '$(transform)'` && \
+       target=`echo xzdiff | sed '$(transform)'` && \
        for name in xzcmp lzdiff lzcmp; do \
-               link=`echo $$name | $(SED) '$(transform)'` && \
+               link=`echo $$name | sed '$(transform)'` && \
                rm -f $$link && \
                $(LN_S) $$target $$link; \
        done && \
-       target=`echo xzgrep | $(SED) '$(transform)'` && \
+       target=`echo xzgrep | sed '$(transform)'` && \
        for name in xzegrep xzfgrep lzgrep lzegrep lzfgrep; do \
-               link=`echo $$name | $(SED) '$(transform)'` && \
+               link=`echo $$name | sed '$(transform)'` && \
                rm -f $$link && \
                $(LN_S) $$target $$link; \
        done && \
        for name in xzmore xzless; do \
-               target=`echo $$name | $(SED) '$(transform)'` && \
-               link=`echo $$name | $(SED) 's/xz/lz/;$(transform)'` && \
+               target=`echo $$name | sed '$(transform)'` && \
+               link=`echo $$name | sed 's/xz/lz/;$(transform)'` && \
                rm -f $$link && \
                $(LN_S) $$target $$link; \
        done
 
 install-data-hook:
        cd $(DESTDIR)$(mandir)/man1 && \
-       target=`echo xzdiff | $(SED) '$(transform)'` && \
+       target=`echo xzdiff | sed '$(transform)'` && \
        for name in xzcmp lzdiff lzcmp; do \
-               link=`echo $$name | $(SED) '$(transform)'` && \
+               link=`echo $$name | sed '$(transform)'` && \
                rm -f $$link.1 && \
                $(LN_S) $$target.1 $$link.1; \
        done && \
-       target=`echo xzgrep | $(SED) '$(transform)'` && \
+       target=`echo xzgrep | sed '$(transform)'` && \
        for name in xzegrep xzfgrep lzgrep lzegrep lzfgrep; do \
-               link=`echo $$name | $(SED) '$(transform)'` && \
+               link=`echo $$name | sed '$(transform)'` && \
                rm -f $$link.1 && \
                $(LN_S) $$target.1 $$link.1; \
        done && \
        for name in xzmore xzless; do \
-               target=`echo $$name | $(SED) '$(transform)'` && \
-               link=`echo $$name | $(SED) 's/xz/lz/;$(transform)'` && \
+               target=`echo $$name | sed '$(transform)'` && \
+               link=`echo $$name | sed 's/xz/lz/;$(transform)'` && \
                rm -f $$link.1 && \
                $(LN_S) $$target.1 $$link.1; \
        done
@@ -54,12 +54,12 @@ uninstall-hook:
        cd $(DESTDIR)$(bindir) && \
        for name in xzcmp lzdiff lzcmp xzegrep xzfgrep \
                        lzgrep lzegrep lzfgrep lzmore lzless; do \
-               link=`echo $$name | $(SED) '$(transform)'` && \
+               link=`echo $$name | sed '$(transform)'` && \
                rm -f $$link; \
        done
        cd $(DESTDIR)$(mandir)/man1 && \
        for name in xzcmp lzdiff lzcmp xzegrep xzfgrep \
                        lzgrep lzegrep lzfgrep lzmore lzless; do \
-               link=`echo $$name | $(SED) '$(transform)'` && \
+               link=`echo $$name | sed '$(transform)'` && \
                rm -f $$link.1; \
        done
index ba64d72bd1a0d30d454e0e7ac3ac404881c1d5b0..8716752f7e4f7064a0a0257f170f8069eb43cef7 100644 (file)
@@ -64,9 +64,9 @@ xzlinks = unxz xzcat lzma unlzma lzcat
 
 install-exec-hook:
        cd $(DESTDIR)$(bindir) && \
-       target=`echo xz | $(SED) '$(transform)'`$(EXEEXT) && \
+       target=`echo xz | sed '$(transform)'`$(EXEEXT) && \
        for name in $(xzlinks); do \
-               link=`echo $$name | $(SED) '$(transform)'` && \
+               link=`echo $$name | sed '$(transform)'` && \
                rm -f $$link && \
                $(LN_S) $$target $$link; \
        done
@@ -74,6 +74,6 @@ install-exec-hook:
 uninstall-hook:
        cd $(DESTDIR)$(bindir) && \
        for name in $(xzlinks); do \
-               link=`echo $$name | $(SED) '$(transform)'` && \
+               link=`echo $$name | sed '$(transform)'` && \
                rm -f $$link; \
        done
index 25517f0ed49621e243c9b5e4d9fe9c3a1e13e8f5..aaa5b5f6490514bfe79e39cd2caa253d3a11d567 100644 (file)
@@ -50,12 +50,12 @@ dist_man_MANS = xzdec.1
 
 install-data-hook:
        cd $(DESTDIR)$(mandir)/man1 && \
-       target=`echo xzdec | $(SED) '$(transform)'` && \
-       link=`echo lzmadec | $(SED) '$(transform)'` && \
+       target=`echo xzdec | sed '$(transform)'` && \
+       link=`echo lzmadec | sed '$(transform)'` && \
        rm -f $$link.1 && \
        $(LN_S) $$target.1 $$link.1
 
 uninstall-hook:
        cd $(DESTDIR)$(mandir)/man1 && \
-       link=`echo lzmadec | $(SED) '$(transform)'` && \
+       link=`echo lzmadec | sed '$(transform)'` && \
        rm -f $$link.1