2009-04-13 08:27:40 +00:00
|
|
|
##
|
|
|
|
## Author: Lasse Collin
|
|
|
|
##
|
|
|
|
## This file has been put into the public domain.
|
|
|
|
## You can do whatever you want with this file.
|
|
|
|
##
|
|
|
|
|
2009-07-05 19:25:17 +00:00
|
|
|
nodist_bin_SCRIPTS = xzdiff xzgrep xzmore xzless
|
|
|
|
dist_man_MANS = xzdiff.1 xzgrep.1 xzmore.1 xzless.1
|
2007-12-08 22:42:33 +00:00
|
|
|
|
|
|
|
install-exec-hook:
|
|
|
|
cd $(DESTDIR)$(bindir) && \
|
2009-07-06 07:36:04 +00:00
|
|
|
target=`echo xzdiff | sed '$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
for name in xzcmp lzdiff lzcmp; do \
|
2009-07-06 07:36:04 +00:00
|
|
|
link=`echo $$name | sed '$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
rm -f $$link && \
|
|
|
|
$(LN_S) $$target $$link; \
|
|
|
|
done && \
|
2009-07-06 07:36:04 +00:00
|
|
|
target=`echo xzgrep | sed '$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
for name in xzegrep xzfgrep lzgrep lzegrep lzfgrep; do \
|
2009-07-06 07:36:04 +00:00
|
|
|
link=`echo $$name | sed '$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
rm -f $$link && \
|
|
|
|
$(LN_S) $$target $$link; \
|
|
|
|
done && \
|
2009-07-05 19:25:17 +00:00
|
|
|
for name in xzmore xzless; do \
|
2009-07-06 07:36:04 +00:00
|
|
|
target=`echo $$name | sed '$(transform)'` && \
|
|
|
|
link=`echo $$name | sed 's/xz/lz/;$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
rm -f $$link && \
|
|
|
|
$(LN_S) $$target $$link; \
|
|
|
|
done
|
2007-12-08 22:42:33 +00:00
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
cd $(DESTDIR)$(mandir)/man1 && \
|
2009-07-06 07:36:04 +00:00
|
|
|
target=`echo xzdiff | sed '$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
for name in xzcmp lzdiff lzcmp; do \
|
2009-07-06 07:36:04 +00:00
|
|
|
link=`echo $$name | sed '$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
rm -f $$link.1 && \
|
|
|
|
$(LN_S) $$target.1 $$link.1; \
|
|
|
|
done && \
|
2009-07-06 07:36:04 +00:00
|
|
|
target=`echo xzgrep | sed '$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
for name in xzegrep xzfgrep lzgrep lzegrep lzfgrep; do \
|
2009-07-06 07:36:04 +00:00
|
|
|
link=`echo $$name | sed '$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
rm -f $$link.1 && \
|
|
|
|
$(LN_S) $$target.1 $$link.1; \
|
|
|
|
done && \
|
2009-07-05 19:25:17 +00:00
|
|
|
for name in xzmore xzless; do \
|
2009-07-06 07:36:04 +00:00
|
|
|
target=`echo $$name | sed '$(transform)'` && \
|
|
|
|
link=`echo $$name | sed 's/xz/lz/;$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
rm -f $$link.1 && \
|
|
|
|
$(LN_S) $$target.1 $$link.1; \
|
|
|
|
done
|
2007-12-08 22:42:33 +00:00
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
cd $(DESTDIR)$(bindir) && \
|
2009-07-05 19:25:17 +00:00
|
|
|
for name in xzcmp lzdiff lzcmp xzegrep xzfgrep \
|
|
|
|
lzgrep lzegrep lzfgrep lzmore lzless; do \
|
2009-07-06 07:36:04 +00:00
|
|
|
link=`echo $$name | sed '$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
rm -f $$link; \
|
|
|
|
done
|
2007-12-08 22:42:33 +00:00
|
|
|
cd $(DESTDIR)$(mandir)/man1 && \
|
2009-07-05 19:25:17 +00:00
|
|
|
for name in xzcmp lzdiff lzcmp xzegrep xzfgrep \
|
|
|
|
lzgrep lzegrep lzfgrep lzmore lzless; do \
|
2009-07-06 07:36:04 +00:00
|
|
|
link=`echo $$name | sed '$(transform)'` && \
|
2009-06-27 09:32:40 +00:00
|
|
|
rm -f $$link.1; \
|
|
|
|
done
|