mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
96e4b257e1
the latest versions found from gzip CVS repository. configure will try to find a POSIX shell to be used by the scripts. This should ease portability on systems which have pre-POSIX /bin/sh. xzgrep and xzdiff support .xz, .lzma, .gz, and .bz2 files. xzmore and xzless support only .xz and .lzma files. The name of the xz executable used in these scripts is now correct even if --program-transform-name has been used.
65 lines
2 KiB
Makefile
65 lines
2 KiB
Makefile
##
|
|
## Author: Lasse Collin
|
|
##
|
|
## This file has been put into the public domain.
|
|
## You can do whatever you want with this file.
|
|
##
|
|
|
|
nodist_bin_SCRIPTS = xzdiff xzgrep xzmore xzless
|
|
dist_man_MANS = xzdiff.1 xzgrep.1 xzmore.1 xzless.1
|
|
|
|
install-exec-hook:
|
|
cd $(DESTDIR)$(bindir) && \
|
|
target=`echo xzdiff | $(SED) '$(transform)'` && \
|
|
for name in xzcmp lzdiff lzcmp; do \
|
|
link=`echo $$name | $(SED) '$(transform)'` && \
|
|
rm -f $$link && \
|
|
$(LN_S) $$target $$link; \
|
|
done && \
|
|
target=`echo xzgrep | $(SED) '$(transform)'` && \
|
|
for name in xzegrep xzfgrep lzgrep lzegrep lzfgrep; do \
|
|
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)'` && \
|
|
rm -f $$link && \
|
|
$(LN_S) $$target $$link; \
|
|
done
|
|
|
|
install-data-hook:
|
|
cd $(DESTDIR)$(mandir)/man1 && \
|
|
target=`echo xzdiff | $(SED) '$(transform)'` && \
|
|
for name in xzcmp lzdiff lzcmp; do \
|
|
link=`echo $$name | $(SED) '$(transform)'` && \
|
|
rm -f $$link.1 && \
|
|
$(LN_S) $$target.1 $$link.1; \
|
|
done && \
|
|
target=`echo xzgrep | $(SED) '$(transform)'` && \
|
|
for name in xzegrep xzfgrep lzgrep lzegrep lzfgrep; do \
|
|
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)'` && \
|
|
rm -f $$link.1 && \
|
|
$(LN_S) $$target.1 $$link.1; \
|
|
done
|
|
|
|
uninstall-hook:
|
|
cd $(DESTDIR)$(bindir) && \
|
|
for name in xzcmp lzdiff lzcmp xzegrep xzfgrep \
|
|
lzgrep lzegrep lzfgrep lzmore lzless; do \
|
|
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)'` && \
|
|
rm -f $$link.1; \
|
|
done
|